
When present, the CAPTION element's text should describe the nature of the When set for the TABLE element, the dir attribute also affects theĭirection of text within table cells (since the dir attribute is inherited by Group of columns ( COLGROUP) cannot be independently reversed. Reverses the visual order of the columns a single table row ( TR) or a Note that TABLE is the only element on which dir When a user agent allots extra cells to a row (see the section on calculating the number of columns in a table), extra rowĬells are added to the right of the table for left-to-right tables and to the For a right-to-left table, column zero is on the right side and row Specified by the dir attribute for the TABLE element.įor a left-to-right table, column zero is on the left side and row zero isĪt the top. Is either the inherited directionality (the default is left-to-right) or that Relative or percentage terms (see the section onĬalculating the width of columns), authors must also specify the width of More precisely, a user agent may render a table in a single pass when theĬolumn widths are specified using a combination ofĬOLGROUP and COL elements.
Please consult the section on calculating the width of columns for details on how to Please consult the section on calculating the number of columns in a table for details on In order for a user agent to format a table in one pass, authors must tell Table rows arrive) rather than having to wait for all the data before beginning The HTML table model has been designed so that, with author assistance, userĪgents may render tables incrementally (i.e., as Visual user agents shouldįormat the table according to HTML attributes and style sheet
Render the cells, row by row and grouped in appropriate columns, between. Group the columns according to any column group. To the number of TR elements contained by the TABLE Note that the number of rows in a table is equal Calculate the number of columns in the table. The scrolled area and the footer at the bottom. Provides a mechanism to scroll the rows, the header may appear at the top of The top of each page and the footer at the bottom. User agents must know where to render the header and footer.įor instance, if the output medium is paged, user agents may put the header at Render the table header, if one is specified. Authors should provideĪ summary of a table's content and structure so that people using non-visual Make the table summary available to the user. The following informative list describes what operations user agents may TABLE element contains all other elements that specify caption, \-/ġ1.2 Elements for constructing tables 11.2.1 Theįrame, rules, border ( borders and rules) Might be rendered something like this on a tty device: Here's a simple table that illustrates some of the features of the HTML Problems, authors should use style sheets View a table designed on a system with a larger display. When used with graphics, these tables may force users to scroll horizontally to This may present problems when rendering to non-visual media. Tables should not be used purely as a means to layout document content as Web-enabled pagers and phones) to handle tables. Mechanisms greatly assist users with visual disabilities, they make it possibleįor multi-modal wireless browsers with limited display capabilities (e.g., That non-visual user agents may more easilyĬommunicate heading information about the cell to the user. The HTML 4 table model allows authors to label each cell so TH element) or "data" (see the TD element). Table cells may either contain "header" information User agents to render the table incrementally rather than having to wait forĪll the table data to arrive before rendering. Printed, the head and foot information may be repeated on each page thatĪuthors may also group columns to provideĪdditional structural information that may be exploited by user agents.įurthermore, authors may declare column properties at the start of a tableĭefinition (via the COLGROUP and COL elements) in a way that enables Sections independently of the head and foot sections. UserĪgents may exploit the head/body/foot division to support scrolling of body Row groups convey additional structural informationĪnd may be rendered by user agents in ways that emphasize this structure. Table rows may be grouped into a head, foot, andīody sections, (via the THEAD, TFOOT and TBODYĮlements, respectively). Summary attribute) for the benefit of people using speech or A longer description may also be provided (via the into rows andĮach table may have an associated caption (see theĬAPTION element) that provides a short description of the table's
Text, images, links, forms, form fields, other tables, etc. The HTML table model allows authors to arrange data - text, preformatted Column groups: the COLGROUP and COL elements.