This is a very limited example to illustrate the nesting of some important TEI tags.
Click on tag names to expand them. To expand an entire sub-tree, hold down any key while clicking on the tag name.
This Javascript application was first developed by Martin Holmes at Unversity of Victoria. (Used with permission.) I changed some of the description and added a few.
Marcus Bingenheimer, Oct.2006
This is an example for numbered divisions. TEI allows for div0 to div7. In the following div0 however only div0 to div2 are shown. For deeper nesting use unnumbered divs or change the schema.
Within div sections, the following tags can be used (among many others):
The p tag is used for normal paragraphs. It can contain the following tags (among many others):
The ab tag ("anonymous block") is a generic tag used for creating a block of text. It can contain all the same tags as the p tag. Its equivalent on the inline level is the seg element.
Very simple tables are supported; these consist of a head (for the caption), rows, and cells. Table tags have these attributes: rows (number of rows in the table), cols (number of columns) and rend.
Row elements may use the attribute role="label", which causes them to be formatted with bold, centred text and a grey background, to make column headers. Without this setting, the cells in a row have left-aligned, normal text on a whte background.
List elements can be nested to any level, and can have various types, specified through the type attribute. Possible value could include "unordered" (bullets), "ordered" (1., 2., 3.), "lower-alpha" (a), b), c)), "lower-roman" (i., ii., iii.).
A list can contain any number of item elements, usually containing plain text, but anything that appears as a child of a p tag can also appear in a list item.
The figure tag is used to embed images. TEI now supports embedding of SVG graphics. ROMA provides a Relax NG schema that validates SVG namespace elements within <figures>, instead or in conjunction with <graphic>.
The head tag contains the image caption.
The URL of the image file can be given on the target attribute of the graphic tag.
The figDesc tag contain a description of the image. It corresponds roughly to the ALT attribute in HTML.
The bibliography consists of a listBibl element containing a biblStruct element for each cited item.
If the text is an article, book chapter etc., then its title and authors will be given in an analytic section. Otherwise, all the details will appear in the monogr tag.
The monogr tag contains all the publication information of the item, or of the book or journal which contains the article or chapter specified in the analytic element above.