The
and elements define numbered and bulleted lists respectively. Each list item must be enclosed in - tags as shown below:
Lists can be nested inside each other.
The
tag can also be used to represent tabular data. It has the following structure:
Table Element
Table Row
| Content | Column Title (needed for accessibility)
Table Cell
Here is the code for a three-column table:
| Column A |
Column B |
Column C |
| Row 1 |
Row 1 |
Row 1 |
| Row 2 |
Row 2 |
Row 2 |
The content inside the (table header) tags renders in bold. Although the table header row is not strictly necessary, it is considered good practice to include it in order to make the data accessible to people with vision impairments. |