Table Elements

There are 10 display values that identify elements as parts of a table. These are:

  • table

  • table-row

  • inline-table

  • table-column-group

  • table-row-group

  • table-column

  • table-header-group

  • table-cell

  • table-footer-group

  • table-caption

These display values have the obvious meanings by analogy with HTML 4.0 table tags. Their use should be consistent with each other and with other elements in the document. For instance, an element formatted as a table-row element should have a parent element formatted as a table and child elements formatted as table cells. For example, these three rules format the ingredients as a simple table:

ingredients         { display: table      }
ingredient          { display: table-row  }
quantity, component { display: table-cell }

Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.