Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSebastian Hewelt
Front End Web Development Techdegree Student 1,254 PointsIf <ul> is just "unordered list" so i assume that an "ul element" is what's inside of it -> "li", right?
As in the subject. Maybe i define an "element" wrong?
2 Answers
Tanja Schmidt
11,798 PointsHi Sebastian,
I would define the unordered/ordered list elements rather as the boxes that may contain list elements. Try applying a background color to an unordered list and then apply a background color only to the list elements inside of it - you should see the difference. I hope this helps! :)
Ahmad Abrar
9,133 PointsA navigation bar needs standard HTML as a base. A navigation bar is basically a list of links, so using the <ul> and <li> elements makes perfect sense:
--
<ul>
<li><a href="Home">Home</a></li>
<li><a href="News">News</a></li>
<li><a href="Contact">Contact</a></li>
<li><a href="About">About</a></li>
</ul>
Sebastian Hewelt
Front End Web Development Techdegree Student 1,254 PointsYeah, but when i chose <li> as an answer to the question about how does the unordered list element looks like the answer <li> was wrong. The correct answer was <ul>. I feel like the question was poorly written.