Learn how to organize information using lists and tables in HTML.
<ul><ol><table>, <tr>, <td>, <th>Lists are used to group items. There are two main types:
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
<ol>
<li>First item</li>
<li>Second item</li>
</ol>
<ul>
<li>Fruits
<ul>
<li>Apple</li>
<li>Banana</li>
</ul>
</li>
</ul>
Tables are used to display data in rows and columns.
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
<th>Country</th>
</tr>
<tr>
<td>Alice</td>
<td>25</td>
<td>USA</td>
</tr>
<tr>
<td>Bob</td>
<td>30</td>
<td>Canada</td>
</tr>
</table>
Try creating the following:
<h2>My Favorite Movies</h2>
<ol>
<li>Inception</li>
<li>The Matrix</li>
<li>Interstellar</li>
<li>The Lord of the Rings</li>
<li>Avatar</li>
</ol>
<h2>Friends Table</h2>
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
<th>Country</th>
</tr>
<tr>
<td>Alice</td>
<td>25</td>
<td>USA</td>
</tr>
<tr>
<td>Bob</td>
<td>30</td>
<td>Canada</td>
</tr>
<tr>
<td>Charlie</td>
<td>28</td>
<td>UK</td>
</tr>
</table>