HTML
|
JavaScript
Alignment
Basics
Character Codes
Colors
CSS
DIVS
Forms
Frames
Links
Lists and Bullets
Meta Tags
Multimedia
Pictures
Spacing
Tables
Text
Background Picture
Basic Table
Cell Padding
Cell Spacing
Colspan Rowspan
Table Alignment
Table Border
Table Colors
Table Shadow
Width and Height
Basic Table
269
Basic Table
Description
Each row consists of a number of cells. Each cell if defined by a tag. The tag looks like <TD>. The starting tag is <TD> and the closing tag is </TD>. Whatever is between the <TD> tags is what will show up in the cell. The <TD> tags go between the <TR> tags.
Code
<TABLE border="1">
<TR> <TD> Cell 1 </TD> <TD> Cell 2 </TD> </TR>
<TR> <TD> Cell 3 </TD> <TD> Cell 4 </TD> </TR>
</TABLE>
Output
Cell 1
Cell 2
Cell 3
Cell 4
Practice
<TABLE border="1"> <TR> <TD> Cell 1 </TD> <TD> Cell 2 </TD> </TR> <TR> <TD> Cell 3 </TD> <TD> Cell 4 </TD> </TR> </TABLE>
Advertisements