![]() |
|
<table Defines a table. Use the <tr>, <td>, and <th> tags inside the <table> tag to create the rows, columns, and a heading. The end-tag is required. The optional <thead>, <tbody>, <tfoot>, <colgroup>, and <col> tags can be used to organise a table and apply attributes across columns and groups of columns. Attributesalign=left|center|right|justify Specifies the table alignment. The default is left.
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. Sets the size, in pixels, of the table border. The default is zero (no border). The border colour. Must be used with the border attribute. 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 bordercolorlight. Must be used with the border attribute. Enter 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 bordercolordark. Must be used with the border attribute. Enter a hexadecimal, a red-green-blue colour value or a predefined colour name. See Colour. Sets the amount of space, in pixels, between the sides of a cell and its contents. Sets the amount of space, in pixels, between the frame (exterior) of the table and the cells in the table. Formats text following the table. The default is NO.
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 <table> tag. See Using the class attribute as a selector for more details. Sets the number of columns in the table. If given, this may speed up processing of tables, especially lengthy ones. 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. Specifies which sides of a frame (outer borders) are displayed. The frame-type can be one of these values:
height=n Sets the height of the table in pixels or as a percentage of the window. To set a percentage, the n must end with a percent sign (%). 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 <table> 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. Keeps table rows from wrapping if they extend beyond the right margin. Specifies which dividing lines (inner borders) are displayed. You can only use rules in tables with the <thead>, <tbody> and <tfoot> tags set. The rule-type can be one of these values:
summary=text Describe the purpose and/or structure of the table. The overview is particularly helpful to users of non-visual browsers. 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 table alignment. The default is top.
Sets the width of the table in pixels or as a percentage of the window. To set a percentage, the n must end with a percent sign (%). |
More information |