Underlined text

Underlined is not a structural category. Most markup languages (including strict XHTML 1.0/HTML 4.0, and TEI), therefore, do not have an underline element.[[note-1|1]|undefined

Print documents
In print documents, underlined type in print sources is commonly used to represent one of the following structural categories:


 * italics (especially in typescript)
 * emphasis (especially in typescript)
 * book/journal/serial titles (especially in typescript)
 * hypertext links
 * low level headings (e.g. level four or five).

Manuscripts
In manuscripts, underlining is commonly used to indicate


 * deletions

See Punctum_delens.

(X)HTML
In Strict (X)HTML, underlined text in print sources is commonly encoded using the following structural elements:

&lt;h4&gt;: Fourth level headings &lt;h5&gt;: Fifth level headings &lt;em&gt;: Emphasis headings &lt;cite&gt;: Citation headings &lt;a href="URL"&gt;: Hyperlinks

Underlining in manuscript contexts (when used to indicate deletion) is encoded using

&lt;del&gt;: deletion

See Punctum_delens.

Commercial browsers do not display most of these elements as underlined by default (the exception is &lt;a href&gt;. If your electronic document must display text as underlined, this must be controlled by external (e.g. CSS) stylesheets.

TEI
In TEI XML (P4), underlined text from print sources is commonly encoded using the following structural elements:

&lt;head&gt;: Headings (particularly fifth- and       sixth-level headings (i.e. &lt;div5&gt;&lt;head&gt;/&lt;div6&gt;&lt;head&gt; or &lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;head&gt; or       &lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;head&gt;). &lt;emph&gt;: Emphasis &lt;title level="m"&gt;: Monographic titles. &lt;title level="j"&gt;: Journal titles. &lt;title level="s"&gt;: Serial titles. &lt;xref&gt;: eXternal Links. &lt;xptr&gt;: eXternal Pointers. &lt;ref&gt;: Links. &lt;ptr&gt;: Pointers.

In manuscript sources, underlining (when used to indicate deletion) is encoded:

&lt;del&gt;: Deletion

Most commercial browsers do not have a default stylesheet for these (or any other) TEI elements. Text-decoration (and other display characteristics) of the elements must be controlled by stylesheets, either directly (i.e. using a formatting stylelanguage such as CSS or XSL-FO), or indirectly, after conversion to XHTML for display.

CSS
Text-decoration (including underline) is contolled in CSS using the text-decoration property. All textual elements can be assigned a value for this property. Relevant values for underlined text are

underline: Suitable for most occurrences in print sources line-through: Strikethrough (commonly used to indicate deletions).

Other allowable values include

overline: text is displayed with a line above each letter blink: text flashes on and off "string": text is aligned to the supplied string[[#note-2|2]|undefined

Examples
em { text-decoration: underline; }

del { text-decoration: line-through; }

XSLT
There is no relevant category in [/dmorgwiki/index.php/XSLT XSLT].

XSL-FO
(Unknown)

LaTeX
To underline text in LaTeX, simply use the \underline command.

For more information on \underline, http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-336.html.

For more on LaTeX, see Hypertext Help with LaTeX at http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/index.html.

Examples
\underline{This is underlined.} This is not.