O'Reilly logo

Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition by Harvey M. Deitel - Deitel & Associates, Inc., Paul J. Deitel - Deitel & Associates, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

G.2. Basic XHTML Tables

Tables are used to organize data in rows and columns. Our first example (Fig. G.1) creates a table with six rows and two columns to display price information for fruit.

Figure G.1. 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.1: table1.html -->
					6
					<!-- Creating a basic table -->
					7
					8  <html xmlns =
					"http://www.w3.org/1999/xhtml">
					9
					<head>
					10
					<title>A simple XHTML table</title>
					11
					</head>
					12
					13
					<body>
					14
					15
					<!-- the <table> tag opens a table -->
					16
					<table border =
						"1"
						width =
						"40%"                  
					17
					
						summary =
						"This table provides information about
					18
					
						the price of fruit"
						>                        
					19
					20
					<!-- the <caption> tag summarizes the table's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required