COVID-19 UPDATE: The CDRH, as part of the UNL Libraries, will be following procedures as outlined on libraries.unl.edu/libraries-information-updates-covid19. If you need assistance or have a question about a current project please email email@example.com directly
Text encoding is a process whereby documents are transferred to an electronically searchable format for scholarly research.
CDRH prepares material for electronic access by encoding text. Four main steps are involved:
- transferring selected materials to a computer text editor
- encoding or marking up the document using markup tags and elements
- validating, or checking the correctness of, the document
- presenting the document to the user via a Web or some other interface
Examples of text encoding projects include:
What is a Tag?
Once material is transferred to a computer text editor, the text is encoded by placing tags around portions of the text. These tags identify characteristics of the material and determine how it will display and function on the Internet. Tags may indicate where a title is located, that a passage is rendered italics, that a word is misspelled, where a table or image is placed, where links are located, and so forth.
There are three kinds of tags:
- opening, or beginning, tags: <title>
- closing, or end, tags: </title>
- empty tags: <page break/>
What is an Element?
An element refers to a section of text bound by a pair of opening and closing tags. Tags identify the element and keep different elements separate from each other. The following examples come from the Electronic Text Center:
<title>Leaves of Grass</title>
Elements can also appear within elements. This is known as nesting.
<title>Leaves of Grass <subtitle>a textual variorum of the printed poems </subtitle> </title>
If elements are not nested properly the text will not function properly on the Internet.
What is an Attribute?
An attribute modifies or further describes an element and appears only in the beginning tag.
<title rend="italic">Leaves of Grass</title>
The rend="italic" attribute signifies that the title should be rendered in italics: Leaves of Grass