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 trialvanitha soma
238 PointsUnordered list
Without using il tag can we give the list?
3 Answers
Greg Kaleka
39,021 PointsYou need ul tags if you want an unordered list.
<ul>
<li>Apples</li>
<li>Pears</li>
<li>Bananas</li>
</ul>
Gives you:
- Apples
- Pears
- Bananas
There are also ordered lists, which are written the same way, except they use ol tags instead of ul tags (this is why you need the tags instead of just the list items. Check out the code below. The only difference is the ol tags.
<ol>
<li>Apples</li>
<li>Pears</li>
<li>Bananas</li>
</ol>
Gives you:
- Apples
- Pears
- Bananas
vanitha soma
238 PointsThanks for your help greg
Jacob Mishkin
23,118 PointsNo, you need a ul or an ol list. The semantics of the HTML would not be good. take a read on the <li> element.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li
vanitha soma
238 PointsThanks for your help
vanitha soma
238 Pointsvanitha soma
238 PointsI mean ul