Skip to content
  • Course Overview
  • Contact
  • My Account
  • Home
  • Private: All Courses
  • Disruptive TEI: De-/Encoding Normative Frameworks

Disruptive TEI: De-/Encoding Normative Frameworks

Curriculum

  • 13 Sections
  • 71 Lessons
  • Lifetime
Expand all sectionsCollapse all sections
  • Module 1: The Basics
    Build a strong foundation in TEI by learning its core structure, syntax, and key elements.
    11
    • 1.1
      1.1: What is TEI?
    • 1.2
      1.1: Quick Quiz
      3 Questions
    • 1.3
      1.2: TEI-XML and Intelligent Search
    • 1.4
      1.2: Quick Quiz
      3 Questions
    • 1.5
      1.3: Setting Up Your TEI Workspace
    • 1.6
      1.3: Quick Quiz
      3 Questions
    • 1.7
      1.4: TEI Document Structure & Key Elements
    • 1.8
      1.4: Quick Quiz
      3 Questions
    • 1.9
      1.5: Genre-Specific Encoding
    • 1.10
      1.5: Quick Quiz
      3 Questions
    • 1.11
      Live Coding Exercise: TEI Metadata
  • Module 2: Critical Encoding Practices
    Explore how text encoding reflects systems of power and how critical approaches can challenge biases in metadata and markup.
    4
    • 2.1
      2.1: Power and Representation in Text Encoding
    • 2.2
      2.2: Bias in TEI Markup and Metadata
    • 2.3
      2.3: Encoding Marginalized Voices and Alternative Perspectives
    • 2.4
      2.4: Ethical and Inclusive Encoding Practices
  • Module 3: Decolonial TEI Encoding
    Uncover colonial legacies in encoding practices and implement ethical frameworks for attribution, consent, and cultural specificity.
    5
    • 3.1
      3.1: Identifying Colonial Biases in TEI Encoding
    • 3.2
      3.2: Ethical Attribution and Contextualization
    • 3.3
      3.3: Consent-Based & Community-Defined Metadata
    • 3.4
      3.4: Implementing Traditional Knowledge Labels
    • 3.5
      3.5: Challenging Assumptions of Universality and Neutrality
  • Module 4: Cultural Knowledge and Editorial Responsibility
    Interrogate editorial neutrality, embrace relational responsibility, and center community protocols in your encoding decisions.
    6
    • 4.1
      4.1: Disrupting Editorial Neutrality
    • 4.2
      4.2: Archival Silences: Encoding Absence and Refusal
    • 4.3
      4.3: Cultural Protocols and Community Authority
    • 4.4
      4.4: Relational Responsibility Beyond Attribution
    • 4.5
      4.5: Ethics in Metadata: Naming, Identity, and Consent
    • 4.6
      4.6: Encoding Epistemologies and Resisting Eurocentric Taxonomies
  • Module 5: Antiracist Markup Strategies
    Develop strategies for addressing racial bias, linguistic marginalization, and whitewashed textual representations in TEI.
    5
    • 5.1
      5.1: Introduction to Antiracist TEI Encoding
    • 5.2
      5.2: Dialects and Code-Switching
    • 5.3
      5.3: Textual Erasure and Whitewashing
    • 5.4
      5.4: Structural Norms and Editorial Power
    • 5.5
      5.5: Positionality and Editorial Perspective
  • Module 6: Encoding Language Diversity and Multilingualism
    Address linguistic injustice by encoding diverse, non-standard, and community-centered languages in respectful and effective ways.
    5
    • 6.1
      6.1: Language, Power, and Digital Editions
    • 6.2
      6.2: TEI Basics for Multilingual Texts
    • 6.3
      6.3: Community Languages and Non-Standard Varieties
    • 6.4
      6.4: Addressing Linguistic Injustice
    • 6.5
      6.5: Visualizing and Presenting Multilingual Editions
  • Module 7: Queer Perspectives and Markup Beyond the Binary
    Apply queer theory to encoding practices by exploring fluidity, nonlinear narratives, and resistance to binary structures.
    5
    • 7.1
      7.1: Queer Theory and Textual Encoding
    • 7.2
      7.2: Encoding Fluid Identities and Relationships
    • 7.3
      7.3: Queering Authorship and Attribution
    • 7.4
      7.4: Queer Temporalities and Nonlinear Narratives
    • 7.5
      7.5: Encoding Queer Linguistic Practices
  • Module 8: Cripping TEI: Encoding Disability, Neurodivergence, and Access
    Center disabled and neurodivergent experiences in encoding through principles of care, multimodality, and temporal disruption.
    6
    • 8.1
      8.1: Disability Studies, Crip Theory, and Digital Normativity
    • 8.2
      8.2: Disability Representation: Visibility, Consent, and Power
    • 8.3
      8.3: TEI Elements and Critical Metadata for Representing Disability
    • 8.4
      8.4: Crip Time, Temporal Disruption, and Nonlinearity
    • 8.5
      8.5: Multimodal and Access-Centered Encoding
    • 8.6
      8.6: Care, Access, and Responsibility
  • Module 9: Nonlinear, Fluid, and Ambiguous Texts
    Learn to represent polyvocal, performative, and evolving texts that defy traditional textual boundaries and require ethical flexibility.
    7
    • 9.2
      9.1: Challenging Linearity: Encoding Fluid and Living Narratives
    • 9.3
      9.2: Encoding Ambiguity, Multiplicity, and Uncertainty
    • 9.4
      9.3: Multi-Voiced and Polyphonic Texts
    • 9.5
      9.4: Spatial, Visual, and Performative Texts
    • 9.6
      9.5: Care-Centered Strategies for Encoding Complex Texts
    • 9.7
      9.6: Embodied Knowledge: Encoding Performance, Gesture, and Sensory Texts
  • Module 10: Markup for Change: Encoding Embodiment, Equity, and Environment
    Engage with affect, trauma, resistance, and environmental justice to explore how markup can become a form of advocacy and healing.
    6
    • 10.1
      10.1: Encoding Affect, Embodiment, and Intuitive Knowledge
    • 10.2
      10.2: Trauma and Loss: Encoding Silences and Difficult Histories
    • 10.3
      10.3: Resistance and Alternative Literacies
    • 10.4
      10.4: TEI and Environmental Humanities
    • 10.5
      10.5: Anti-Neoliberal TEI: Encoding Beyond Efficiency, Ownership, and Commodification
    • 10.6
      10.6: Data Justice and Encoding Against Surveillance
  • Module 12: Teaching with TEI: Composition, Code, and Critical Reading
    Design inclusive, multimodal, and critical pedagogy strategies using TEI as a tool for close reading, authorship, and data ethics.
    6
    • 11.1
      12.1: Text Encoding as Critical Reading
    • 11.2
      12.6: Grading Code with Care: Critical Approaches to Assessment
    • 11.3
      12.2: Textual Analysis with TEI
    • 11.4
      12.3: Multimodal TEI Assignments
    • 11.5
      12.4: Teaching Data Ethics and Representation
    • 11.6
      12.5: Collaborative Student Projects
  • Module 11: From Authority to Accountability: Collaborative Approaches to TEI
    Shift from single-author control to collective responsibility through equitable workflows and shared encoding practices.
    5
    • 12.1
      11.1: Rethinking Authorship
    • 12.2
      11.2: Ethical Frameworks for Collective Encoding
    • 12.3
      11.3: Equitable Workflow Design
    • 12.4
      11.4: Tools and Platforms for Collaborative TEI Encoding
    • 12.5
      11.5: Strategies for Managing Multi-Author Projects
  • Module 13: Beyond Encoding: Analyzing & Visualizing TEI Data
    Translate encoded data into stories, visualizations, and public-facing scholarship while attending to ethical data practices.
    6
    • 13.1
      13.1: Analyzing TEI Data
    • 13.2
      13.2: Visualization Techniques for TEI
    • 13.3
      13.3: Publishing TEI Projects Responsibly
    • 13.4
      13.4: Telling Stories with TEI
    • 13.5
      13.5: The Risks of Interoperability: TEI Meets Linked Open Data
    • 13.6
      13.6: Public Humanities Projects

1.4: TEI Document Structure & Key Elements

Lesson 1.4: TEI Document Structure & Key Elements

Introduction

A TEI document is composed of hierarchical components that provide both metadata and textual content, using clearly defined TEI elements. These elements serve as the fundamental building blocks of the TEI framework, enabling the encoding of textual features such as paragraphs, names, dates, structural divisions, and more.

TEI elements are enclosed within angle brackets (< >) and define the structure and meaning of textual content. This lesson provides a general overview of some fundamental TEI elements that will be discussed in more detail in subsequent modules. All of them are clickable links to the corresponding reference in the official TEI Guidelines. In addition to those references, the TEI by Example Project is an excellent recent for more detailed information beyond the scope of this lesson.

Core Components of a TEI Document

  1. The <TEI> Root Element: This encloses the entire document and declares it as TEI-encoded.
  2. The <teiHeader>: Contains bibliographic and administrative metadata, including author information, publication details, and encoding descriptions.
  3. The <text> Element: Holds the actual content, divided into sections such as:

    Encloses the actual content of the document.

    • <front>: Prefatory material (e.g., title page, edication, or table of contents)
    • <body>: The main content of the text, including chapters, sections, or other divisions
    • <back>: Any supplementary content, such as appendices, notes, glossaries, indices, etc.

Below is a basic example of a TEI document structure:


<TEI xmlns="http://www.tei-c.org/ns/1.0">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title>Sample TEI Document</title>
        <author>John Doe</author>
      </titleStmt>
      <publicationStmt>
        <publisher>Open Humanities Press</publisher>
        <date>2025</date>
      </publicationStmt>
      <sourceDesc>
        <p>Based on the original manuscript housed in the British Library.</p>
      </sourceDesc>
    </fileDesc>
  </teiHeader>
  <text>
    <body>
      <div>
        <head>Introduction</head>
        <p>This is a paragraph inside a TEI-encoded text.</p>
      </div>
    </body>
  </text>
</TEI>
        

This structure ensures that the document is well-organized, making it easier for researchers and software to process and analyze the encoded content.

The Importance of Metadata

The TEI by Example Project explains that the TEI header functions like an “identity card” of a literary work as part of a library catalogue record. The screenshot below shows an example of such a record in the catalogue of the University of Hawaiʻi at Mānoa Library:

An example of a library catalogue record
An example of a library catalogue record — Source: University of Hawaiʻi at Mānoa Library
  • Discovery: Metadata enhances the searchability and discoverability of texts in digital archives and academic databases.
  • Attribution: Ensures proper credit is given to authors, editors, and contributors.
  • Contextualization: Provides important contextual information that helps readers understand the text’s origins, purpose, and historical background.
  • Preservation: Metadata supports the long-term preservation of digital texts, ensuring that future scholars can interpret and access the work.

Breakdown of the TEI Header

The TEI Header is a crucial part of any TEI document as it provides important contextual metadata about the text, offering information that enhances seaches and scholarly interpretation. Below are the key sections within <teiHeader>:

  1. File Description: <fileDesc>

    Contains bibliographic information about the document and describes the file’s origin, including title, authorship, and publication details. This element is mandatory in a TEI header along with the following three sub-elements:

    • Title Statement: <titleStmt>
      Lists the title of the document and identifies responsible parties such as authors and editors. The only mandatory sub-element here is <title>, but it may also contain <author>, <editor>, <sponsor>, <funder>, <principal> (name of the principal researcher responsible), or <respStmt> (statement of responsibility).
    • Publication Statement: <publicationStmt>
      Provides publication details, including publisher, date, and access restrictions. At a minimum, these details can be dscribed in a <p> element; however, the TEI Guidelines recommend to use at least <publisher>, <distributor>, or <authority>). Other options are <pubPlace>, <address>, <idno> (a standardized bibliographic identification code), <availability>, or <date>.
    • Source Description: <sourceDesc>
      Describes the original source text, including the provenance of original manuscripts or editions. The bibliographic description of the source text can be written in a paragraph (<p>) or more formally using <bibl> (loose), <biblStruct> (structured), or <biblFull> (exhaustive), or a list of bibliographic references as <listBibl>.

    Optional elements:

    • <editionStmt>: Provides details about the edition of the electronic text, such as its version, editor, or revision history.
    • <extent>: Indicates the size or scope of the electronic text, typically by noting word count, number of files, or character length.
    • <seriesStmt>: Contains information about the publication series in which the electronic text appears, including series title and editors if applicable.
    • <notesStmt>: Gathers supplementary notes related to the electronic edition that are not captured elsewhere in the bibliographic metadata.
  2. Encoding Description: <encodingDesc>

    Explains how the text was encoded, including editorial decisions, methods, standards, and tools used.

    Example:

    
    <encodingDesc>
      <p>This TEI encoding represents a diplomatic transcription of the original manuscript. Original spelling, punctuation, and capitalization have been preserved. Line breaks, page breaks, and marginal annotations have been encoded. Scribal deletions and additions are marked using <del> and <add> elements. No editorial normalization has been applied.</p>
    </encodingDesc>
            

    Other than the paragraph element (<p>), it could also contain <editorialDecl> (editorial practice declaration), <projectDesc> (project description), <tagsDecl> (tagging declaration), <refsDecl> (reference system declaration), or <classDecl> (classification declaration) as well as schema-dependant elements <metDecl> (metrical notation declaration) for editing poetry, <variantEncoding> (method used to encode text-critical variants), and others.

  3. Profile Description: <profileDesc>

    Provides contextual information about the text’s language, setting, and other descriptive metadata in elements such as <creation> (information about the creation of a text), <langUsage> (the languages used in the text), <textClass> (classification of the contents of the text), and schema-dependant elements such as <handNotes> (identification of the different hands in a primary document).

  4. Revision Description: <revisionDesc>

    Tracks changes and updates made to the document over time, ensuring transparency in the editing process. Each revision is described in a <change> element, and encoders can formally identify the exact date of the change in a @when attribute, and the person responsible for the change in a @who attribute.

Example of a TEI Header


<teiHeader>
  <fileDesc>
    <titleStmt>
      <title>Encoded Historical Letter</title>
      <author>John Smith</author>
    </titleStmt>
    <publicationStmt>
      <publisher>Historical Society Press</publisher>
      <date>2024</date>
    </publicationStmt>
    <sourceDesc>
      <p>Based on the original manuscript housed in the National Archives.</p>
    </sourceDesc>
  </fileDesc>
  <encodingDesc>
    <editorialDecl>
      <p>Encoded following TEI P5 guidelines using Oxygen XML Editor.</p>
    </editorialDecl>
  </encodingDesc>
    <profileDesc>
        <langUsage>
            <language ident="en">English</language>
        </langUsage>
    </profileDesc>
    <revisionDesc>
        <change who="#editor1" when="2025-02-20">Initial TEI encoding completed.</change>
    </revisionDesc>
</teiHeader>
        

This header structure ensures that TEI documents contain vital metadata, facilitating proper organization, discovery, and analysis of texts in digital humanities projects.

Structural Markup

Structural markup defines the overall organization of a text, allowing encoders to indicate divisions, sections, and other layout features that reflect the text’s internal structure. These elements help maintain the logical and visual flow of a document, making it easier to navigate, analyze, and preserve in digital form.

  • <div>: Used to group sections and subsections of a text, such as chapters or articles.
  • <head>: Represents a heading or section title, typically found at the start of a <div>.
  • <p>: Represents paragraphs.
  • <pb/>: Page break, marks where a new page begins in the original document. This is useful for maintaining page-level fidelity in digital editions and can help with citation consistency across different formats.
    Note: The / in <pb/> signifies that this is a self-closing element, meaning it does not contain any text or nested elements. It is commonly used for elements that indicate milestones in a document, such as line breaks or page breaks, without requiring a closing tag.
  • <br/>: Line break, especially useful in poetry or transcription.
  • <milestone>: Marks non-hierarchical structural points (e.g., sermon numbers, canto divisions).

Example:


<body>
    <div>
        <head>Introduction</head>
        <p>This is the opening section.</p>
    </div>
</body>
        

Inline Elements

There are many elements available for encoding different kinds of texts, including those for poetry, drama, and manuscripts, which we will explore in more detail in our next lesson. Here are just a few examples:

  • <note>: Used to encode editorial notes, annotations, or comments within the text.
  • <choice>: Represents editorial or authorial alternatives, such as original and modernized spellings.
  • <persName>: Identifies a person’s name.
  • <placeName>: Identifies a place.
  • <date>: Marks a date.
  • <hi>: Used for text styling (e.g., italics, bold).

Example:


<p>
  <persName>William Shakespeare</persName> was born in <placeName>Stratford-upon-Avon</placeName> in <date>1564</date>.
</p>
        

Attributes in TEI

Attributes provide additional information about TEI elements and are always included within the opening tag. They modify the behavior or meaning of an element, making the encoding more precise.

  • Common Attributes:
  • @xml:id: A unique identifier for an element.
  • @rend: Specifies rendering information (e.g., italics, bold, underline).
  • @type: Categorizes the element’s content.
  • @when: Represents a date or timestamp.

Example:


<p xml:id="p1" rend="italic">This is an emphasized paragraph.</p>
        

TEI Syntax & Structure

Since TEI uses XML (Extensible Markup Language), it follows strict syntax rules for consistency, readability, and machine processing:

  1. All Elements Must Be Properly Nested

    Elements must not overlap and must close in reverse order.

    Correct:

    
    <div>
      <p>This is a paragraph.</p>
    </div>
                

    Incorrect:

    
    <div>
      <p>This is a paragraph.</div></p>
                
  2. Every Element Must Be Closed

    You must either use a closing tag or self-close it.

    
    <p>This is a paragraph.</p>        <!-- correct -->
    <lb/>                              <!-- correct for line break (self-closing) -->
              
  3. Tags Are Case-Sensitive

    TEI treats <title> and <Title> as different. Stick to lowercase tags as defined in the TEI Guidelines.

  4. Attributes Go Inside Opening Tags

    Attributes modify elements and go within the start tag.

    
    <p xml:id="p1" rend="italic">This is a styled paragraph.</p>
                
  5. Use the TEI Namespace Declaration

    All TEI documents should begin with a namespace declaration in the root <TEI> element:

    
    <TEI xmlns="http://www.tei-c.org/ns/1.0">
      ...
    </TEI>
                
  6. Attribute Values Must Be Quoted

    Always wrap attribute values in double or single quotes.

    
    <date when="1818">1818</date>
                

Works Cited

  • Terras, Melissa, et al.. “Module 2: The TEI Header.” TEI by Example, 2020, teibyexample.org/exist/tutorials/TBED02v00.htm.
  • TEI Consortium. TEI: Guidelines for Electronic Text Encoding and Interchange, 2025, tei-c.org/guidelines/p5/.

Suggested Readings

  • Hawkins, Kevin S. “Introduction to the TEI Header.” ultraslavonic.info, 21 Jun. 2016, ultraslavonic.info/intro-to-tei-header/. Accessed March 6, 2025.
  • Terras, Melissa, et al.. TEI by Example, 2020, teibyexample.org/exist/tutorials/TBED02v00.htm.
1.3: Quick Quiz
Prev
1.4: Quick Quiz
Next

© 2025 Disruptive TEI • Privacy Policy • Accessibility Statement