Sikau

HTML · Day 7 · about 25 min

Tables

Rows and columns of data.

For data, not layout

Timetables, price lists and scores belong in a table. Well-built tables let screen readers announce "Price, Rs 180" as you move between cells. (Tables are for data only — page layout is CSS's job.)

Table parts

scope="col" and scope="row" tell assistive technology which cells a header describes.

The rest of this lesson

  • Spanning cells and footersexplain
  • Tables on small screensexplain
  • What's a tr?predict
  • Table structureorder
  • Your turnwrite code
  • Badge quizquiz
  • What you learnedrecap

Continue this lesson free — run real code in your browser

Continue with Google

See all 17 lessons of HTML