Exercises for TEI by Example. Module 0: Introduction to Text Encoding and the TEI Edward Vanhoutte Ron Van den Branden Edward Vanhoutte Ron Van den Branden Melissa Terras Association for Literary and Linguistic Computing (ALLC) Centre for Digital Humanities (CDH), University College London, UK Centre for Computing in the Humanities (CCH), King's College London, UK Centre for Scholarly Editing and Document Studies (CTB) , Royal Academy of Dutch Language and Literature, Belgium
Centre for Scholarly Editing and Document Studies (CTB) Royal Academy of Dutch Language and Literature Koningstraat 18 9000 Gent Belgium
ctb@kantl.be
Edward Vanhoutte Melissa Terras Ron Van den Branden
Centre for Scholarly Editing and Document Studies (CTB) , Royal Academy of Dutch Language and Literature, Belgium Centre for Scholarly Editing and Document Studies (CTB) , Royal Academy of Dutch Language and Literature, Belgium Gent
Centre for Scholarly Editing and Document Studies (CTB) Royal Academy of Dutch Language and Literature Koningstraat 18 9000 Gent Belgium

Licensed under a Creative Commons Attribution ShareAlike 3.0 License

9 July 2010
TEI By Example. Edward Vanhoutte editor Ron Van den Branden editor Melissa Terras editor

Digitally born

TEI By Example offers a series of freely available online tutorials walking individuals through the different stages in marking up a document in TEI (Text Encoding Initiative). Besides a general introduction to text encoding, step-by-step tutorial modules provide example-based introductions to eight different aspects of electronic text markup for the humanities. Each tutorial module is accompanied with a dedicated examples section, illustrating actual TEI encoding practise with real-life examples. The theory of the tutorial modules can be tested in interactive tests and exercises.

en-GB release creation
Exercises for Module 0: Introduction

Although the first TEI by Example module does not introduce any actual TEI markup, following exercise should help you getting acquainted with the spirit of XML markup the spirit of TEI P5 XML markup the TEI By Example Validator application (see the right hand side of this page), and how it can help you to instantaneously check your TEI XML input for correctness

Can you update the following sample fragment of a book chapter encoded in SGML TEI P3 to P5?

<div type=chapter> <P id="p1">This could be a TEI encoded<LB> single-paragraph chapter<LB> whose line breaks have been retained. </P> </div> Hints and points of attention: XML attribute values must be quoted. XML elements must nest properly (i.e. all start tags must have a corresponding end tag) XML tag names are case sensitive; TEI P5 elements are mostly lowercase. The pre-P5 id attribute has been updated to xml:id in TEI P5.