Table - tr - td and Attributes CELLPADDING - CELLSPACING - COLSPAN – ROWSPAN
- ----------------------------------------------------------------------------------------------------------
HTML tags - Table tags
<TABLE> - </TABLE> - defines a table.
<TR> - </TR> - defines a row in a table.
<TD> - </TD> - defines a cell in a row within a table.
<TH> - </TH> - defines a table header (cell with bold text).
the following attributes are used in conjunction with the <TABLE> tag.
<TABLE WIDTH=?> - defines the width of the table, where ? is the width, given in pixels or percentage of page.
<TABLE BORDER=?> - defines the size of the table border, where ? is the value.
<TABLE CELLSPACING=?> - defines the amount of space between adjacent cells in the table.
<TABLE CELLPADDING=?> - defines the amount of space between a cell's border and the cell contents.
the following attributes are used in conjunction with the <TD> tag.
<TD ALIGN=???> - </TD ALIGN=???> - defines the alignment for cells, where ??? is either LEFT, RIGHT or CENTER. For example to create a cell with centered content, you could use
<TD ALIGN=CENTER>content goes here</TD ALIGN=CENTER>.
<TD VALIGN=???> - </TD VALIGN=???> - defines the vertical alignment for cells, where ??? is either TOP, MIDDLE or BOTTOM. For example to create a cell with text aligned at the bottom you would use
<TD VALIGN=BOTTOM>content goes here</TD VALIGN=BOTTOM>.
<TD COLSPAN=?> - defines the amount of columns that a cell should span, where ? is the amount of columns.
<TD ROWSPAN=?> - defines the amount of rows that a cell should span, where ? is the amount of rows.
<TD NOWRAP> - denotes that the text within the cell should not wrap around to the next line.
No comments:
Post a Comment