G.3. Intermediate XHTML Tables and Formatting

In the preceding section, we explored the structure of a basic table. In Fig. G.2, we enhance our discussion of tables by introducing elements and attributes that allow the document author to build more complex tables.

Figure G.2. Complex XHTML table.
					1
					<?xml version =
					"1.0"
					?>
					2
					<!DOCTYPE html PUBLIC
					"-//W3C//DTD XHTML 1.1//EN"
					3
					"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
					4
					5
					<!-- Fig. G.2: table2.html     -->
					6
					<!-- Intermediate table design -->
					7
					8
					<html xmlns =
					"http://www.w3.org/1999/xhtml">
					9
					<head>
					10
					<title>Internet and WWW How to Program - Tables </title>
					11
					</head>
					12
					13
					<body>
					14
					15
					<h1>Table Example Page</h1>
					16
					17
					<table border = "1">
					18
					<caption>Here is a more complex sample table. ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second 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.