This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Make a Website: HTML Forum

View Course » View Exercise

19 points
Picture
Submitted by
mazigulu
almost 2 years ago

4/9 [resolved] I cant seem to pass this stage even after following the instructions

theres my code. heres the error message i keep getting
Oops, try again. Add an h1 element after the closing </div> tag.
I have done that as per the instructions but the error message keeps popping up,what could be the problem. Someone please help

<!DOCTYPE html>
<html>
  <body>
  <div class="nav">
    <div class="container">
    <ul>
      <li>Item 1</li>
      <li>item 2</li>


    </ul>
    <ul>
     <li>Sign up</li>
     <li>Log in</li>
     <li>Help</li>
     </ul>
   </div>
     </div>
     <h>Find a place to stay<h1>
     <p>Rent from people in over 34,000 cities and 192 countries.</p> 
  </body>
</html>

0 votes

permalink

Hi mazigulu,

As you can probably tell from the message, this is the line that needs attention:

<h>Find a place to stay<h1>

To create an h1 element you need an opening and a closing tag and then there is usually some text between those two tags, like this:

<h1>Some text in here</h1> 

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
almost 2 years ago

2 Comments

Picture mazigulu almost 2 years ago

Got it thanks for the help, I appreciate it

55df2afa95e3787b9200005e_359368177 Judy almost 2 years ago

You're welcome!


0 votes

permalink

4/9 [resolved] I cant seem to pass this stage even after following the instructions

I need your help not where I'm wrong

<div class=<!DOCTYPE html>
<html></div>
  <body>
  <div class=<ul>
      <li>Maycol</li>
      <li>"Browse"</li>
    </ul>
 <ul>  
 <li>"Sign Up"</li>
 <li>"Log In"</li>
 <li>"Help"</li>
 </ul>
 </div>
 </div>
 <h1>Find a place to stay.</hi>
 <p>Rent from people in over 34.000 cities and 192 countries.</p>
  </body>
</html>

3 points
39a3f11be916a02b9a1b1a9b75b4db14?s=140&d=retro
Submitted by
mike wolf
over 1 year ago

1 Comment

55df2afa95e3787b9200005e_359368177 Judy over 1 year ago

Hi Mike, should be <!DOCTYPE html> -- should be -- should be -- I'm not sure what you were thinking with those, but if you have any questions, just ask.


0 votes

permalink

4/9 [resolved] I cant seem to pass this stage even after following the instructions

<DOCTYPE html>
<html>
  <body>

<ul> 
<li>Maycol</li>
<li>"Browse"</li>
    </ul>
 <ul>  
 <li>"Sign Up"</li>
 <li>"Log In"</li>
 <li>"Help"</li>
 </ul></div> 
  </body>
</html>

so I'll stick with the changes but I still dating , Oops, try again . Add an h1 element after the closing < / div > tag .
I do wrong ?

3 points
39a3f11be916a02b9a1b1a9b75b4db14?s=140&d=retro
Submitted by
mike wolf
over 1 year ago

1 Comment

55df2afa95e3787b9200005e_359368177 Judy over 1 year ago

Hi Mike, where did your h1 element go? And you p element? I don't see them in this latest version of your code but I do see them in your previous version.


0 votes

permalink

4/9 [resolved] I cant seem to pass this stage even after following the instructions

<DOCTYPE html>
<html>
  <body>

<ul> 
<li>Maycol</li>
<li>"Browse"</li>
    </ul>
 <ul>  
 <li>"Sign Up"</li>
 <li>"Log In"</li>
 <li>"Help"</li>
 </ul></div> 
 <h1>"find a place to stay"</h1>
 <p>"Rent from people in over 34.000 cities and 192 countries"</p>
  </body>
</html>

so I'll stick with the changes but I still dating , Oops, try again . Add an h1 element after the closing < / div > tag .
I do wrong ?

3 points
39a3f11be916a02b9a1b1a9b75b4db14?s=140&d=retro
Submitted by
mike wolf
over 1 year ago

1 Comment

55df2afa95e3787b9200005e_359368177 Judy over 1 year ago

Hi MIke, sorry I didn't notice earlier, but you are missing the opening tag for your nav div. You need a just before your first list begins.