Globale linker
Book 1
- Chapter 1
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 10
- Chapter 11
- Chapter 12
- Chapter 13
- Chapter 14
- Chapter 15
- Chapter 16/17
- Chapter 18/19
- Chapter 20
- Chapter 21
- Chapter 22/23
Book 2
Ch.12 Tables and Page Structure
HTML tables were intended to handle tabular data. Eventually, site designers realized that the wealth of attributes applicable for tables made them a valuable page layout tool.
Tables have one great advantage over frames. The user can easily bookmark the page or add it to the favorites folder. The disadvantage is that page content scrolls together.
The easiest method for creating tables is to first diagram it.
The three main parts of a table are:
- <table>
Use the border attribute to create a borderless table. Attributes include:- border
- width
- height
- cellspacing
- cellpadding
- bgcolor
- background
- align
- <tr>
Tablerow. When desired to provide uniform attributes for the entire row, place the attributes in the <tr> tag. - <td>
Table data. Attributes include:- width
- height
- background
- bgcolor
- align
- valign
- colspan
- rowspan
The <body> tag can be modified to move the top and left margins of your page to the edge of the browser window. By default, an 8-pixels border exists between the content and the edge of the browser window.
- Use «marginheight» and «marginwidth» for Netscape browsers
- Use «topmargin» and «leftmargin» for Internet Explorer browsers
These attributes are not part of HTML as defined by W3C. However, they are widely used.
