24.08.2016 Views

(Shelly Cashman Series) Gary B. Shelly, H. Albert Napier, Ollie N. Rivers-Web design_ introductory concepts and techniques -Cengage Learning (2008)

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

HTML Tags <strong>and</strong> Attributes APP 21<br />

HTML Tags <strong>and</strong> Attributes (continued)<br />

HTML Tag <strong>and</strong> Attributes<br />

char=character<br />

charoff=value<br />

valign=position<br />

….<br />

bgcolor=color<br />

colspan=value<br />

rowspan=value<br />

width=n or %<br />

….<br />

align=position<br />

char=character<br />

charoff=value<br />

valign=position<br />

….<br />

Description<br />

Specifies a character on which to align column values (for<br />

example, a period is used to align monetary values)<br />

Specifies a number of characters to offset data aligned with the<br />

character specified in the char property<br />

Sets vertical alignment of cells in a group (top, middle, bottom,<br />

baseline)<br />

Defines a table header cell; contents are bold <strong>and</strong> center-aligned<br />

by default<br />

Defines the background color for the cell<br />

Defines the number of adjacent columns spanned by the cell<br />

Defines the number of adjacent rows spanned by the cell<br />

Sets the width of the table in either pixels or a percentage of the<br />

whole table width<br />

Identifies <strong>and</strong> groups rows into a table header<br />

Specifies horizontal alignment (left, center, right, justify, char)<br />

Specifies a character on which to align column values (for<br />

example, a period is used to align monetary values)<br />

Specifies a number of characters to offset data aligned with the<br />

character specified in the char property<br />

Sets vertical alignment of cells in a group (top, middle, bottom,<br />

baseline)<br />

Defines the title for the HTML document; always should be used<br />

No attributes<br />

….<br />

bgcolor=color<br />

align=position<br />

char=character<br />

charoff=value<br />

valign=position<br />

Defines a row of cells within a table<br />

Defines the background color for the cell<br />

Specifies horizontal alignment (left, center, right, justify, char)<br />

Specifies a character on which to align column values (for<br />

example, a period is used to align monetary values)<br />

Specifies a number of characters to offset data aligned with the<br />

character specified in the char property<br />

Sets vertical alignment of cells in a group (top, middle, bottom,<br />

baseline)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!