June 2006
Intermediate to advanced
1344 pages
42h 52m
English
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.
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 ... |
Read now
Unlock full access