Starlit Daily

📚 › 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.

← कोर्स पर वापस