HTML supports three main types of lists:
- Unordered list (
<ul>) — bullet points - Ordered list (
<ol>) — numbered/lettered items - Description list (
<dl>) — terms and descriptions
HTML supports three main types of lists:
<ul>) — bullet points<ol>) — numbered/lettered items<dl>) — terms and descriptions
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
<ol>
<li>Step 1</li>
<li>Step 2</li>
<li>Step 3</li>
</ol>
<!-- Roman numerals -->
<ol type="I">...</ol>
start & reversed
<ol start="5">
<li>Item</li>
<li>Item</li>
</ol>
<ol reversed>
<li>Final</li>
<li>Middle</li>
<li>Start</li>
</ol>
<ul>
<li>Frontend
<ul>
<li>HTML</li>
<li>CSS</li>
</ul>
</li>
<li>Backend
<ol>
<li>PHP</li>
<li>Python</li>
</ol>
</li>
</ul>
<dl>
<dt>HTML</dt>
<dd>HyperText Markup Language</dd>
<dt>CSS</dt>
<dd>Cascading Style Sheets</dd>
</dl>
<ul style="list-style-type: square;">
<li>Square bullet</li>
</ul>
<ol style="list-style-type: lower-alpha;">
<li>a, b, c…</li>
</ol>
Tip: Keep list items concise. Use nested lists to organize information hierarchically.