📚 › HTML: build the structure of a web page
5. Lists: ordered, unordered and nested
ستتم ترجمة هذا المقال تلقائيًا. يُعرض بالإنجليزية حاليًا.
An unordered list uses ul and shows bullets. An ordered list uses ol and shows numbers. Each item is an li element.
A list can sit inside another list item. This is called nesting, and it is how you build outlines and menus with sub-items.
عرض المثال
<ol>
<li>Wake up</li>
<li>Study
<ul>
<li>HTML</li>
</ul>
</li>
</ol>
✍️ دورك الآن
Make an unordered list with Apples and Mangoes, and inside Mangoes add a nested list with Alphonso.