th
Table headers allow you to "label" the rows or columns so you know what kind of information is in the row or column. The scope
attribute lets to communicate to screen readers whether the header is labeling a row
or a col
.
Table with columns for breakfast, lunch and dinner:
Breakfast Lunch DinnerTable with rows for breakfast, lunch and dinner:
Meal Monday Wednesday Friday Breakfast Lunch Dinnercolspan
and rowspan
for clarityDay | Pony | Toy | Color | Color Sample |
---|---|---|---|---|
Monday | Applejack | image of apple jack toy here | Peach Puff | |
Tuesday | Bubbles | ![]() |
Aqua | color swatch here |
Wednesday | Twilight | ![]() |
Rebecca Purple | |
Thursday | Moondancer | ![]() |
Fire Brick | color swatch here |
Friday | Starflower | image of starflower toy here | Light Sea Green | |
Saturday | Gusty | ![]() |
Blanched Almond | |
Sunday | need to merge this | need to merge this | need to merge this | need to merge this |