HTML provides three main types of lists to group related content:
<ul> <li>HTML</li> <li>CSS</li> </ul>
<ol> <li>Step 1</li> <li>Step 2</li> </ol>
<dl> <dt>HTML</dt> <dd>HyperText Markup Language</dd> </dl>
<ol>) for sequential steps and an unordered list (<ul>) for bulleted items.<ol><li>...</li></ol> for numbered steps and <ul><li>...</li></ul> for bulleted items.<html> <body> <h2>Web Development Learning Path</h2> <h3>Core Technologies (Unordered)</h3> <ul> <li>HTML5 Structuring</li> <li>CSS3 Styling & Layouts</li> <li>JavaScript Interactive Logic</li> </ul> <h3>Project Execution Steps (Ordered)</h3> <ol> <li>Design wireframe layout</li> <li>Write clean HTML markup</li> <li>Apply CSS styles and test responsiveness</li> <li>Publish website on hosting server</li> </ol> </body> </html>
<ul> when item order does not matter (bullet points) and <ol> when item sequence is important (numbered steps).
<dl>, <dt> (terms), and <dd> (descriptions).<dt> tags and their explanations in <dd> tags inside a <dl> block.<html> <body> <h2>AIT Course Definitions</h2> <dl> <dt>FSD</dt> <dd>- Full Stack Development (Frontend & Backend integration)</dd> <dt>UI/UX</dt> <dd>- User Interface & User Experience Design principles</dd> <dt>CS</dt> <dd>- Cyber Security Essentials and Network Safety</dd> </dl> </body> </html>
<dl>) are ideal for glossaries, metadata, or key-value term listings where <dt> defines the term and <dd> provides its definition.