40 Mins
5. Lists & Tables
HTML
Lists & Tables
Lists organize information into scannable items. Tables display structured data in rows and columns — like a spreadsheet embedded in a webpage.
Unordered List — Bullet Points
<h3>Shopping Cart</h3>
<ul>
<li>Mechanical Keyboard — $120</li>
<li>USB-C Hub — $45</li>
<li>Monitor Stand — $30</li>
</ul>
Ordered List — Numbered Steps
<h3>How to Deploy a Website</h3>
<ol>
<li>Write your HTML and CSS files</li>
<li>Create a free account on Netlify</li>
<li>Drag your project folder into Netlify</li>
<li>Your site is live in 10 seconds!</li>
</ol>
HTML Tables
Tables are built from rows (<tr>) and cells. Header cells use <th>, data cells use <td>.
| Name | Language | Level |
|---|---|---|
| Alice | Python | Senior |
| Bob | JavaScript | Junior |
Knowledge Check
Ready to test your understanding of 5. Lists & Tables?