| Home - Books - Reviews - Tutorials - Software - Download - Orders - Newsletter | |||||||||||||||||||
| Subscribe here for our free email newsletter - monthly updates |
Custom Search
|
||||||||||||||||||
HTML - adding tables1. You can add tables to your web pages. This is usually done for two quite different reasons:
2. This is a simple table containing data:
3. The table borders can be removed to use the same coding for controlling layout:
4. What follows is the basic code for a simple table. COPY this code into one of your template pages. You can then experiment by changing the size of the table and the alignment of data in it. 5. Your data goes inside the table data tags:
<TR>
<TD></TD> </TR> <TR>
<TD></TD> </TR> </TABLE>
6. The width of each table data cell can be controlled by adding WIDTH=X, where X is the number of pixels:
7. The position of data within each cell can be set at LEFT, RIGHT, or CENTER
8. You can use the <P> and <BR> tags within the table data, as you would in a normal page:
9. In order to control the vertical position of data within the cell, you need to add the VALIGN coding - which can be TOP, MIDDLE, or BOTTOM. [Note - this is 'Middle', not 'Center'.] 10. The coding for the cells containing numbers in the example above is as follows:
11. The structure and the appearance of tables can become a much more complex issue. You can add colour to the cells, shading to the borders, and put tables within tables.
|
|||||||||||||||||||
| Home - Books - Reviews - Tutorials - Software - Download - Orders - Newsletter | |||||||||||||||||||
|
Mantex - PO Box 100 - Manchester M20 6GZ - UK Tel: +44 0161 432 5811 — Email: info@mantex.co.uk Copyright © Mantex 2000—2007 |