| HyperText Markup Language (HTML) Style Structure See also : |
Often, it is helpful to present information in a more structured manner than a list. Tables can display this information in rows and columns. The tables are defined as series of rows.
A table must follow the rules below:
Here is an example of an HTML table:
<TABLE BORDER="1">
<CAPTION>This is the title of the table</CAPTION>
<TR>
<TH> Title A1 </TH>
<TH> Title A2 </TH>
<TH> Title A3 </TH>
<TH> Title A4 </TH>
</TR>
<TR>
<TH> Title B1 </TH>
<TD> Value B2 </TD>
<TD> Value B3 </TD>
<TD> Value B4 </TD>
</TR>
</TABLE>
The results of this code:
| Title A1 | Title A2 | Title A3 | Title A4 |
|---|---|---|---|
| Title B1 | Value B2 | Value B3 | Value B4 |
| Attribute | Tags it applies to | Value | Visual Effect |
|---|---|---|---|
| ALIGN | THEAD TBODY TH TR TD |
CENTER LEFT RIGHT JUSTIFY |
centred Left Right Justified |
| CAPTION | TOP BOTTOM |
Above Below |
|
| VALIGN (vertical alignment) |
THEAD TBODY TH TR TD |
TOP MIDDLE BOTTOM |
Top Middle Bottom |
| BORDER=n | TABLE | Border size | |
| CELLPADDING=n | TABLE | Leaves n pixels of space between cell contents and border | |
| CELLSPACING=n | TABLE | Thickness of the space in between cells | |
| FLOAT | TABLE | RIGHT LEFT |
Position of text that follows </TABLE> |
| COLS=n | TABLE | Number of columns | |
| FRAME (controls individual table frame elements) |
TABLE | NONE top BOTTOM TOPBOT SIDES ALL |
None Above Bottom All on top On the sides All |
| RULES (controls cell grid elements) |
TABLE | NONE BASIC ROWS COLS ALL |
None basic Line Column All |
| COLSPAN | THEAD TBODY TH TR TD |
Makes cells fill multiple adjacent columns | |
| ROWSPAN | THEAD TBODY TH TR TD |
Makes cells fill multiple adjacent rows |
| 16/03 16h37 | [Viruses] Preliminary method of disinfection | Viruses |
| 17/06 04h58 | How to view emal messages sent in HTML | 0 |
| 20/05 20h50 | HTML Code "mailto:_____" issues | 3 |
| 02/05 13h15 | Cannot send HTML email in Outlook | 3 |
| 22/02 11h54 | Html table driving me crazy | 3 |
| 01/02 10h16 | Outlook issue with HTML form | 7 |
![]() | PC Inspector File Recovery - PC INSPECTORâ„¢ File Recovery is a data recovery program that supports the FAT 12/16/32 and NTFS file systems. Finds... | Category: Backup License: Freeware/gratuit |
![]() | Money Manager Ex - Possibilty to download a version compatible with Linux <h2> </h2> Money Manager Ex is a free, open-source, cross... | Category: Budget License: Open Source |