Beginning HTML, XHTML, CSS and JavaScript - Code Examples

Back to main book index

Chapter 4: Tables

Here are the examples for Chapter 4, which looks at how to create tables for the Web.

Basic Table Elements

ch04_eg01.htmlA basic table
ch04_eg02.htmlUsing the <th> element for table headings
ch04_eg03.htmlTable with text flowing around it using the align attribute
Try it outWrox Cafe - Opening hours table

Extended Table Elements

ch04_eg04.htmlMaking cells span columns
ch04_eg05.htmlMaking cells span rows
ch04_eg06.htmlHeads, bodies, and footers
ch04_eg07.htmlThe <colgroup> element
ch04_eg08.htmlThe <col> element
ch04_eg09.htmlA nested table

How Tables Linearize

ch04_eg10.htmlSimple example for how tables linearize
Try it outAn accessible timetable

Exercise

Exercise 3Cinema times