Transcript table
The Structure of a Web Table
beginning of the table structure first row of three in the table end of the table structure
table cells You do not need to indent the … … … … … …
After the table structure is in place, you’re ready to add the text for each cell.
1
two rows
Example: A Simple 2x2 Table
two columns
2
Adding Table Headings with the
Row of table headings
3
Result of Table Headings as Displayed in the Browser table headings appear bold and centered over their columns
4
Creating a Table Caption
• The syntax for creating a caption is:
where
alignment
indicates the caption placement – a value of
bottom
centers the caption below the table – a value of
top
table – a value of
left
or
center
or
right
centers the caption above the place the caption above the table to the left or right 5
Inserting a Table Caption
caption text caption will be centered above the table table caption
6
Marking Row Groups in a Table
• You can divide a table’s rows into
row groups
, in which each group element contains different types of content and can be formatted differently
0 or 1 of these 0 or 1 of these 0 or more of these. They are listed last (after the tfoot element)
Marking Column Groups in a Table
• Once the table columns have been determined by the browser, you can reference them through the use of
column groups