Advanced Tables


HTML contains two more attributes that you should be aware of when formatting tables. The colspan (which causes a cell to span two or more columns) and rowspan (which causes a cell to span two or more rows) attributes are invaluable when creating complex tables, although, as you can tell from the HTML in Figure 7.5, using them makes it harder to keep your HTML document organized. Figure 7.6 shows how the table looks in a browser.

Figure 7.5. Using the colspan and rowspan attributes to create complex tables.


Figure 7.6. That same HTML table as it appears in the browser.




Sams Teach Yourself HTML in 10 Minutes
Sams Teach Yourself HTML in 10 Minutes (4th Edition)
ISBN: 067232878X
EAN: 2147483647
Year: 2004
Pages: 151
Authors: Deidre Hayes

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net