<underline>

Underline

Used to mark text that should appear with a horizontal line beneath it.

Remarks

Emphasis as a Toggle Switch: The @toggle attribute controls the behavior of this element. When the value of @toggle is set to “no”, the emphasized text remains in the requested style, no matter what the surrounding text does. When the value of @toggle is “yes”, if the surrounding text is set to the same emphasis style, the text within this element will change to another emphasis style, so that the text will always be typographically distinct from its surroundings.
Using the element <italic> as an example, setting the @toggle attribute to “no” would mean that material marked as italics will always be italics, even in an italic context. In contrast, if the @toggle attribute was set to “yes” on the <italic> element, if the formatting context imposes italics (whether due to another <italic> element, a stylesheet, some CSS, or other means), then the italics would be turned off within that context, making the emphasized text emphasized by contrast, but not italic. The <italic> element would still produce italics everywhere else.

Attributes

Model Description

Any combination of:

This element may be contained in:

Example 1

...
<p specific-use="indent"><underline>Level 1</underline>: 
This level generally corresponds to the set of common 
letters of the alphabets for that script, if the script 
is alphabetic, and to the set of common characters of 
the script if the script is ideographic or syllabic.</p>
... 

Example 2

...
<p>... any nonempty bare interval; or <underline>empty</underline> ...</p>
...