|
<th Creates a row or column heading in a table. A table heading is like other cells in a table except that it appears in bold and the default alignment is centred. The end-tag is optional. This tag is valid only within a row in a table; you must use a <tr> tag before using <th>. All attributes are optional. Attributesabbr=text An abbreviated form of the cell’s content. Speech browsers may used it. align=center|left|right|justify Specifies the alignment of text in the cell. The default is center.
axis=name Provides a method of categorizing cells. The attribute's value is a comma-separated list of category names. Specifies a background picture. The picture is tiled behind the text and graphics in the table, table head, or table cell. The background colour. Enter a hexadecimal, a red-green-blue colour value or a predefined colour name. See Using colour. The border colour. Must be used with the border attribute of the <table> tag. The colour is a hexadecimal, a red-green-blue colour value or a predefined colour name. See Colour. Sets independent border colour control over one of the two colours used to draw a 3-D border, opposite of bordercolorlight. Must be used with the border attribute of the <table> tag. Enter a hexadecimal, a red-green-blue colour value or a predefined colour name. See Using colour. Sets independent border colour control over one of the two colours used to draw a 3-D border, opposite of bordercolordark. Must be used with the border attribute of the <table> tag. Enter a hexadecimal, a red-green-blue colour value or a predefined colour name. See Using colour. char=char A single character for the alignment of text in the column. The default value is the decimal point of the current language charoff=n Specifies the offset to the first occurrence of the alignment character. The attribute's value is a number in pixels or a percentage of the cell's width Indicates the class to which the tag belongs. You can use the class attribute in a style sheet to create different styles that you want apply to a single HTML tag. For example, you might create three different styles for a <th> tag. See Using the class attribute as a selector for more details. Indicates the number of table columns this cell spans. dir=ltr|rtr Specifies the direction of text. This can be left-to-right (ltr) or right-to-left (rtl). For example, English characters are presented left-to-right, Hebrew characters are presented right-to-left. height=n Specifies the height of the table heading, in rows. Specifies a unique name for the tag. No two tags can have the same id on a single page. The value must begin with a letter followed by any alphanumeric character, a hyphen, an underscore, a colon or a full stop. You use it to reference a unique style for a tag or to manipulate the tag with a script. lang=language Specifies which language the <th> tag uses. You can enter any valid ISO standard language abbreviation, for example, “en” for English, “de” for German and so on. For example, <span lang="es">hola! como esta?</span>. This attribute helps search engines understand different languages as different languages rather than just misspelled English. It may also help spelling and grammar checkers and allow speech synthesizers to use language-dependent pronunciation rules. Prevents word wrapping within the cell. Lines of text appear as given in the HTML page. Indicates the number of table rows this cell spans. Specifies style information. See Style sheets for more information. title=text For information only. Some browsers display the title when you move the mouse over the tag (like a tool tip). valign=top|middle|bottom|baseline Specifies the vertical alignment of text in the table. The default is top.
Specifies the width of the table heading, in columns. |
More information |