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

Make a Website: HTML Forum

View Course » View Exercise

35 points
53b9c05a4bc96df62003c9c55c9cf58c?s=140&d=retro
Submitted by
noel aranilla
about 2 years ago

2/9 The ul element should have 3 li elements?

can somebody help me Navigation 2 exercise 2/9 my answer

<!DOCTYPE html> 
<html>
<body> 

    <ul> 
        <li>noel</li>  
        <li>Browse</li> 
    </ul> 

    <li>"Sign Up"
    <li>Log In
    <li>help
    <li>

    <ul> 

</body> 
</html>

1 vote

permalink

AlbionsRefuge is correct - the <li> element needs to be nested inside a <ul> element.

Also, <li> requires a closing tag </li>.

So this set of code:

<li>"Sign Up"
<li>Log In
<li>help
<li>

Should look like this:

<ul>
    <li>"Sign Up"</li>
    <li>Log In</li>
    <li>help</li>
    <li></li>
</ul>

1007 points
3acbf61347ae094ca1751efb21d72a90?s=140&d=retro
Submitted by
Thomas B.
about 2 years ago

2 Comments

4620ae9387718904eb35ec66c4dd98b5?s=140&d=retro Daniel Anderson almost 2 years ago

<!DOCTYPE html>

<ul>
  <li>Daniel</li>
<li>Browse</li>




"Sign Up"
"Log in"
"Help"

55df2afa95e3787b9200005e_359368177 Judy almost 2 years ago

Hi Daniel, that 4th li element in the second list is what is causing your error.


0 votes

permalink

what does it mean add a second ul element inside the body element

7 points
2e84cb3e4a277bfe62ac312ac95f7657?s=140&d=retro
Submitted by
Javier Alonso
almost 2 years ago

1 Comment

55df2afa95e3787b9200005e_359368177 Judy almost 2 years ago

Hi Javier, this is the body element: ... . This is a ul element: ... . You have just finished make one ul element inside the body element, and now the exercise would like you to make one more.


-7 votes

permalink

Hi noel aranilla,

I tidied up your code a bit.

Can you see the differences between your two lists? The first list is perfect. It has list items surrounded by ul tags. You need to do the same for your second list.

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
about 2 years ago

2 Comments

53b9c05a4bc96df62003c9c55c9cf58c?s=140&d=retro noel aranilla about 2 years ago

the same response copy your answer. the ul element should have 3 li elements.

55df2afa95e3787b9200005e_359368177 Judy about 2 years ago

Are you saying you copied your code again without making any changes?