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

Make a Website: HTML Forum

View Course » View Exercise

50 points
1ba641508e64549519ffc7a90c5880ed?s=140&d=retro
Submitted by
Harry Fowler
over 2 years ago

2/9 I cant do the third li

i dont know where to do the third li


2 votes

permalink

Hi Harry,

I would suggest typing it on the line after the second li.

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
over 2 years ago


0 votes

permalink

The <li> element is a nested tag, meaning it needs to be nested inside of a different element - in this case, it goes inside the <ul> element. And, it's important to note that it can't be nested inside just any element - learn more here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li

So, when adding a <li> to an existing list, you insert it below an existing <li></li> set:

<ul>
    <li>First item in the list</li>
</ul>

Becomes:

<ul>
    <li>First item in the list</li>
    <li>This is the new item</li>
</ul>

And don't forget to add the closing </li> tag!

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