## Text Encoding Initiative

### The XML Version of the TEI Guidelines

# <table>

`<table>` | contains text displayed in tabular form, in rows and columns.

Attributes

(In addition to global attributes and those inherited from common, inter)

`rows` | indicates the number of rows in the table.
| Datatype: CDATA
| Values: If no number is supplied, an application must calculate the number of rows.
| Default: #IMPLIED
Note | Rows should be presented from top to bottom.

`cols` | indicates the number of columns in each row of the table.
| Datatype: CDATA
| Values: If no number is supplied, an application must calculate the number of columns.
| Default: #IMPLIED
Note | Within each row, columns should be presented left to right.

Example

    <table rows="4" cols="4">
       <head>Poor Men's Lodgings in Norfolk (Mayhew, 1843)</head>
       <row role="label">
          <cell role="data"/>
          <cell role="data">Dossing Cribs or Lodging Houses</cell>
          <cell role="data">Beds</cell>
          <cell role="data">Needys or Nightly Lodgers</cell>
       </row>
       <row role="data">
          <cell role="label">Bury St Edmund's</cell>
          <cell role="data">5</cell>
          <cell role="data">8</cell>
          <cell role="data">128</cell>
       </row>
       <row role="data">
          <cell role="label">Thetford</cell>
          <cell role="data">3</cell>
          <cell role="data">6</cell>
          <cell role="data">36</cell>
       </row>
       <row role="data">
          <cell role="label">Attleboro'</cell>
          <cell role="data">3</cell>
          <cell role="data">5</cell>
          <cell role="data">20</cell>
       </row>
       <row role="data">
          <cell role="label">Wymondham</cell>
          <cell role="data">1</cell>
          <cell role="data">11</cell>
          <cell role="data">22</cell>
       </row>
       <!-- ... -->
    </table>

Note

Any rendition information should be supplied using the global `rend` attribute, at the table, row, or cell level as appropriate.

Module Declared in file teifig2; Additional tag set for figures, tables and formulae: enabled by TEI.figures
Class inter; common
Data Description Contains an optional heading and a series of rows.
May contain addSpan alt altGrp anchor cb certainty delSpan fLib fs fsLib fvLib fw gap head index interp interpGrp join joinGrp lb link linkGrp milestone pb respons row span spanGrp timeline
May occur within ab add admin argument body camera caption case castList cell colloc corr country damage def descrip dictScrap div div0 div1 div2 div3 div4 div5 div6 div7 docEdition emph entryFree epigraph epilogue etym figDesc foreign form gen gram gramGrp head hi hyph imprimatur item itype l lang lbl lem meeting metDecl mood note number orth otherForm p per performance pos prologue pron q quote rdg ref region rendition row seg set sic sound stage stress subc supplied syll tagUsage tech title titlePart tns tr trans unclear usg view wit witDetail witness writing xr xref
Declaration

    <!ELEMENT table %om.RR; ((head | %m.Incl;)*, (row, (%m.Incl;)*)+)>
    <!ATTLIST table
          %a.global;
          rows CDATA #IMPLIED
          cols CDATA #IMPLIED>

See further 22.1.1 The TEI Table DTD

Up: 35 Elements