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

Make a Website: HTML Forum

View Course » View Exercise

87 points
7aa8e7f475e2743cd5b00c6f2512c6cc?s=140&d=retro
Submitted by
Hassfiasco101
almost 3 years ago

[resolved] Its asking me to add a second ul element inside the body element

Why is my code not working?

<!DOCTYPE html>
<html>
  <body>

    <ul>
        <li>Hassan</li>
        <li>Browse  
    </ul>

        <li>Sign Up<li>Log In<li>Help
    </ul>

  </body>
</html>

Everytime i type this code in, its says Oops, try again. Add a second ul element inside the body element.


2 votes

permalink

You need to be careful about making sure that every element has both an open and a close tag.

You are missing many </li>. You have 1 <ul> but 2 </ul>.

3698 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
almost 3 years ago

4 Comments

7aa8e7f475e2743cd5b00c6f2512c6cc?s=140&d=retro Hassfiasco101 almost 3 years ago

I finaly got it thanks for the help

55df2afa95e3787b9200005e_359368177 Judy almost 3 years ago

You're welcome.

Bd0ed09974e2c6d4cc32ab1fe9e9cbeb?s=140&d=retro yasamin alquhshi over 2 years ago

ts asking me to add a second ul element inside the body element!!!

55df2afa95e3787b9200005e_359368177 Judy over 2 years ago

@ yasamin alquhshi, show us your code!


1 vote

permalink

<!DOCTYPE html>
</html>
  </body>

</ul>

  <li>Rajesh</li>
  <li>"Browse"</li>
    </ul>
    <li>"Sign Up"</li>
    <li>"Log in"</li>

    </ul>


  </body>
</html>

my code is not working sir/mam
why?

45 points
Ae89a273f4018335bba86dee667714ac?s=140&d=retro
Submitted by
Rajesh
over 2 years ago

1 Comment

55df2afa95e3787b9200005e_359368177 Judy over 2 years ago

Hi Raj Rajesh, most HTML elements, including ul elements are composed of an opening tag like and a closing tag . You have 0 opening tags and 3 closing tags there.