Table (XHTML table model)


The rows and columns part of a full table. The standard XHTML table model has been used to take advantage of existing software for table handling. For more complete information on this table model, see the documentation for the XHTML table model. (Note: The <table> element is usually just part of what would be called a “table” in print; a full table may include a table caption, a table title, table footnotes, introductory paragraphs, etc., and is created using the <table-wrap> element.)

See W3C documentation for the XHTML table model.


The standard XHMTL model has been modified to remove the <caption> element from within the <table> element, because, in the base Suite, the <caption> element has been made part of the Table Wrapper <table-wrap> element.

Historical Note: CALS Tables — As part of the 0.1 version of this Tag Set, the OASIS Interchange (CALS) table model was also included in the Suite, to prove that it was possible, though not easy, to include two different table models, by using pseudo-namespaces with a fixed prefix to differentiate any name clashes. Since there were indeed name clashes, the XHTML model was taken as primary (no name spaces) and the OASIS Exchange CALS model was set up to use pseudo-namespaces (prefix “oasis”. Although the OASIS/CALS model has been removed from this Tag Set, the modules to include the OASIS/CALS model in the DTD realization of the tag set constraints are still shipped with the base Suite. For organizations that choose to use the OASIS model instead of or in addition to the XHTML table model, there is a separate http://dtd.nlm.nih.gov/options/OASIS/tag-library/19990315/index.htmlTag Library describing the OASIS elements, attributes, and Parameter Entities.

The following changes were made to the OASIS table model:


alternate-form-of Alternate Form of Graphic, Media Object, Etc.
border Border (Frame) around a Table (XHTML table model)
cellpadding Cell Padding (XHTML table model)
cellspacing Cell Spacing (XHTML table model)
content-type Type of Content
frame Frame (XHTML table model)
id Identifier
rules Rules (XHTML table model)
style Style (XHTML table model; MathML 2.0 Tag Set)
summary Summary (XHTML table model)
width Width (XHTML table model; MathML 2.0 Tag Set)

Related Elements

The <table> element is an element defined by a public table model such as the XHTML table model. This element is not, in itself, a full table, but only the rows and columns portions of a table. A full table may have other features, such as a title, caption, table footnotes, etc. The <table-wrap> element contains the full table. A full table may or may not include a <table> element within it, since other constructions, such as two-part lists, may also be given table titles, captions, etc.

Model Information

Content Model

<!ELEMENT %table.qname;  %table.content; >


The following, in order:

This element may be contained in:

<table-wrap> Table Wrapper

Tagged Example

<sec id="bid.268">
<table-wrap id="bid.269">
<title>Files on the taxonomy FTP site.</title>
<th align="left" valign="top">File</th>
<th align="left" valign="top">Uncompresses to</th>
<th align="left" valign="top">Description</th>
<td align="left" valign="top">taxdump.tar.Z<xref ref-type="fn" 
<td align="left" valign="top">readme.txt</td>
<td align="left" valign="top">A terse description of the dmp 
<td align="left" valign="top"/>
<td align="left" valign="top">nodes.dmp</td>
<td align="left" valign="top">Structure of the database; lists 
each taxid with its parent taxid, rank, and other values 
associated with each node (genetic codes, etc.)</td>
<fn symbol="a" id="mul2">
<p>For non-UNIX users, the file taxdmp.zip includes the 
same (zip compressed) data.</p>
<p>Each taxon in the database has a unique identifier, 
its taxid. ...</p>