Back to Freecodecamp

Say Hello to HTML Elements

curriculum/__fixtures__/english/challenge-html-comments.md

latest837 B
Original Source

Description

<section id='description'>
js
  // change code below this line
</section>

Instructions

<section id='instructions'> To pass the test on this challenge, change your <code>h1</code> element's text to say "Hello World". </section>

Tests

<section id='tests'>
yml
tests:
  - text: Your <code>h1</code> element should have the text "Hello World".
    testString: assert.isTrue((/hello(\s)+world/gi).test($('h1').text()));

</section>

Challenge Seed

<section id='challengeSeed'> <div id='html-seed'>
html
<h1>Hello</h1>
<!-- Add your code below this line -->
<!-- Add your code above this line -->
<style>
  /* change code below this line */
  /* change code above this line */
</style>
</div> </section>

Solution

<section id='solution'>
html
<h1>Hello World</h1>
</section>