Lists and Tables
Lists hold steps, menus and top tens; tables hold data you compare across rows and columns. You will build both, give tables the headers and captions that make them readable to everyone, and build a high-score board for an arcade game.
Updated
Lists
- Ordered and Unordered Lists (Novice): HTML has two everyday lists, an unordered list for items whose order doesn't matter and an ordered list for steps and rankings, with each item in its own list item.
- Description Lists (Apprentice): A description list pairs names with their meanings or values, such as a glossary or a menu with prices, using dl for the list, dt for each name and dd for what it means.
Tables
- Tables for Data (Apprentice): A table holds data you read both across a row and down a column, built from rows of header and data cells with a caption that says what the table shows, and it's never used to lay out a page.
- Table Headers, Sections and Spanning Cells (Journeyman): Bigger tables group their rows into a head, a body and a foot, tell each header cell what it labels with scope, and merge cells across columns or rows with colspan and rowspan.
Exercise: A Game High-Score Board
- Exercise: A Game High-Score Board (Apprentice): Build the Galaxy Blasters arcade's high-score board from plain-text data, with a countdown list, a scores table with a caption, header cells and a totals row, and a description list, and let the tests check its structure.