<ol>
<li>Preheat oven to 375 degrees</li>
<li>Mix dry ingredients in a large bowl</li>
<li>Add wet ingredients and stir until smooth</li>
<li>Bake for25 minutes</li>
</ol>
Note Use start to begin numbering at a specific value, and reversed attribute for countdown order. The type attribute changes markers (1, a, A, i, I).
Note The nested list must be placed inside the parent li element, not after it. You can nest ul inside ol and vice versa.
nested listsub listindented listlist inside list
Definition List
syntax
<dl>
<dt>Term</dt>
<dd>Definition</dd>
</dl>
example
<dl>
<dt>Latency</dt>
<dd>The time delay between a request and its response.</dd>
<dt>Throughput</dt>
<dd>The amount of data processed in a given time period.</dd>
</dl>
Note Ideal for glossaries, metadata key-value pairs, and FAQ sections. A single dt can have multiple dd elements for multiple definitions.
definition listglossarykey value listdl dt ddterm definition
Note Always use thead/tbody for proper structure. Use th for header cells and td for data cells. This helps screen readers navigate the table correctly.
create tablehtml tabledata tabletable rows
Colspan & Rowspan
syntax
<td colspan="n">Spans n columns</td>
<td rowspan="n">Spans n rows</td>
Note The caption element provides an accessible name for the table. It must be the first child of the table element. tfoot contains summary rows like totals.