Module moxie_dom::elements::text_semantics [−][src]
Expand description
HTML inline text semantic define the meaning, structure, or style of a word, line, or any arbitrary piece of text.
Also includes elements that provide indications that specific parts of the text have been altered.
Structs
The HTML <a>
element (or anchor element), along with its href attribute, creates
a hyperlink to other web pages, files, locations within the same page, email addresses, or
any other URL.
The HTML <a>
element (or anchor element), along with its href attribute, creates
a hyperlink to other web pages, files, locations within the same page, email addresses, or
any other URL.
The HTML Abbreviation element (<abbr>
) represents an abbreviation or acronym; the
optional title
attribute can provide an expansion or description for the
abbreviation.
The HTML Abbreviation element (<abbr>
) represents an abbreviation or acronym; the
optional title
attribute can provide an expansion or description for the
abbreviation.
The HTML Bring Attention To element (<b>
) is used to draw the reader’s attention to
the element’s contents, which are not otherwise granted special importance.
The HTML Bring Attention To element (<b>
) is used to draw the reader’s attention to
the element’s contents, which are not otherwise granted special importance.
The HTML Bidirectional Isolate element (<bdi>
) tells the browser’s bidirectional
algorithm to treat the text it contains in isolation from its surrounding text.
The HTML Bidirectional Isolate element (<bdi>
) tells the browser’s bidirectional
algorithm to treat the text it contains in isolation from its surrounding text.
The HTML Bidirectional Text Override element (<bdo>
) overrides the current
directionality of text, so that the text within is rendered in a different direction.
The HTML Bidirectional Text Override element (<bdo>
) overrides the current
directionality of text, so that the text within is rendered in a different direction.
The HTML <br>
element produces a line break in text (carriage-return). It is useful
for writing a poem or an address, where the division of lines is significant.
The HTML <br>
element produces a line break in text (carriage-return). It is useful
for writing a poem or an address, where the division of lines is significant.
The HTML Citation element (<cite>
) is used to describe a reference to a cited
creative work, and must include the title of that work.
The HTML Citation element (<cite>
) is used to describe a reference to a cited
creative work, and must include the title of that work.
The HTML <code>
element displays its contents styled in a fashion intended to
indicate that the text is a short fragment of computer code.
The HTML <code>
element displays its contents styled in a fashion intended to
indicate that the text is a short fragment of computer code.
The HTML <data>
element links a given content with a machine-readable translation.
If the content is time- or date-related, the <time>
element must be used.
The HTML <data>
element links a given content with a machine-readable translation.
If the content is time- or date-related, the <time>
element must be used.
The HTML <del>
element represents a range of text that has been deleted from a
document.
The HTML <del>
element represents a range of text that has been deleted from a
document.
The HTML Definition element (<dfn>
) is used to indicate the term being defined
within the context of a definition phrase or sentence.
The HTML Definition element (<dfn>
) is used to indicate the term being defined
within the context of a definition phrase or sentence.
The HTML <em>
element marks text that has stress emphasis. The <em>
element can
be nested, with each level of nesting indicating a greater degree of emphasis.
The HTML <em>
element marks text that has stress emphasis. The <em>
element can
be nested, with each level of nesting indicating a greater degree of emphasis.
The HTML <i>
element represents a range of text that is set off from the normal
text for some reason. Some examples include technical terms, foreign language phrases, or
fictional character thoughts. It is typically displayed in italic type.
The HTML <i>
element represents a range of text that is set off from the normal
text for some reason. Some examples include technical terms, foreign language phrases, or
fictional character thoughts. It is typically displayed in italic type.
The HTML <ins>
element represents a range of text that has been added to a
document.
The HTML <ins>
element represents a range of text that has been added to a
document.
The HTML Keyboard Input element (<kbd>
) represents a span of inline text denoting
textual user input from a keyboard, voice input, or any other text entry device.
The HTML Keyboard Input element (<kbd>
) represents a span of inline text denoting
textual user input from a keyboard, voice input, or any other text entry device.
The HTML Mark Text element (<mark>
) represents text which is marked or highlighted
for reference or notation purposes, due to the marked passage’s relevance or importance in
the enclosing context.
The HTML Mark Text element (<mark>
) represents text which is marked or highlighted
for reference or notation purposes, due to the marked passage’s relevance or importance in
the enclosing context.
The HTML <q>
element indicates that the enclosed text is a short inline quotation.
Most modern browsers implement this by surrounding the text in quotation marks.
The HTML <q>
element indicates that the enclosed text is a short inline quotation.
Most modern browsers implement this by surrounding the text in quotation marks.
The HTML Ruby Base (<rb>
) element is used to delimit the base text component of
a <ruby>
annotation, i.e. the text that is being annotated.
The HTML Ruby Base (<rb>
) element is used to delimit the base text component of
a <ruby>
annotation, i.e. the text that is being annotated.
The HTML Ruby Fallback Parenthesis (<rp>
) element is used to provide fall-back
parentheses for browsers that do not support display of ruby annotations using the
<ruby>
element.
The HTML Ruby Fallback Parenthesis (<rp>
) element is used to provide fall-back
parentheses for browsers that do not support display of ruby annotations using the
<ruby>
element.
The HTML Ruby Text (<rt>
) element specifies the ruby text component of a ruby
annotation, which is used to provide pronunciation, translation, or transliteration
information for East Asian typography. The <rt>
element must always be contained within a
<ruby>
element.
The HTML Ruby Text (<rt>
) element specifies the ruby text component of a ruby
annotation, which is used to provide pronunciation, translation, or transliteration
information for East Asian typography. The <rt>
element must always be contained within a
<ruby>
element.
The HTML <ruby>
element represents a ruby annotation. Ruby annotations are for
showing pronunciation of East Asian characters.
The HTML <ruby>
element represents a ruby annotation. Ruby annotations are for
showing pronunciation of East Asian characters.
The HTML <s>
element renders text with a strikethrough, or a line through it. Use
the <s>
element to represent things that are no longer relevant or no longer accurate.
However, <s>
is not appropriate when indicating document edits; for that, use the
<del>
and <ins>
elements, as appropriate.
The HTML <s>
element renders text with a strikethrough, or a line through it. Use
the <s>
element to represent things that are no longer relevant or no longer accurate.
However, <s>
is not appropriate when indicating document edits; for that, use the
<del>
and <ins>
elements, as appropriate.
The HTML Sample Element (<samp>
) is used to enclose inline text which represents
sample (or quoted) output from a computer program.
The HTML Sample Element (<samp>
) is used to enclose inline text which represents
sample (or quoted) output from a computer program.
The HTML <small>
element represents side-comments and small print, like copyright
and legal text, independent of its styled presentation. By default, it renders text within
it one font-size small, such as from small
to x-small
.
The HTML <small>
element represents side-comments and small print, like copyright
and legal text, independent of its styled presentation. By default, it renders text within
it one font-size small, such as from small
to x-small
.
The HTML <span>
element is a generic inline container for phrasing content, which
does not inherently represent anything. It can be used to group elements for styling
purposes (using the class
or id
attributes), or because they share
attribute values, such as lang
.
The HTML <span>
element is a generic inline container for phrasing content, which
does not inherently represent anything. It can be used to group elements for styling
purposes (using the class
or id
attributes), or because they share
attribute values, such as lang
.
The HTML Strong Importance Element (<strong>
) indicates that its contents have
strong importance, seriousness, or urgency. Browsers typically render the contents in bold
type.
The HTML Strong Importance Element (<strong>
) indicates that its contents have
strong importance, seriousness, or urgency. Browsers typically render the contents in bold
type.
The HTML Subscript element (<sub>
) specifies inline text which should be displayed
as subscript for solely typographical reasons.
The HTML Subscript element (<sub>
) specifies inline text which should be displayed
as subscript for solely typographical reasons.
The HTML Superscript element (<sup>
) specifies inline text which is to be displayed
as superscript for solely typographical reasons.
The HTML Superscript element (<sup>
) specifies inline text which is to be displayed
as superscript for solely typographical reasons.
The HTML <time>
element represents a specific period in time.
The HTML <time>
element represents a specific period in time.
The HTML Unarticulated Annotation Element (<u>
) represents a span of inline text
which should be rendered in a way that indicates that it has a non-textual annotation.
The HTML Unarticulated Annotation Element (<u>
) represents a span of inline text
which should be rendered in a way that indicates that it has a non-textual annotation.
The HTML Variable element (<var>
) represents the name of a variable in a
mathematical expression or a programming context.
The HTML Variable element (<var>
) represents the name of a variable in a
mathematical expression or a programming context.
The HTML <wbr>
element represents a word break opportunity—a position within text
where the browser may optionally break a line, though its line-breaking rules would not
otherwise create a break at that location.
The HTML <wbr>
element represents a word break opportunity—a position within text
where the browser may optionally break a line, though its line-breaking rules would not
otherwise create a break at that location.
Functions
The HTML <a>
element (or anchor element), along with its href attribute, creates
a hyperlink to other web pages, files, locations within the same page, email addresses, or
any other URL.
The HTML Abbreviation element (<abbr>
) represents an abbreviation or acronym; the
optional title
attribute can provide an expansion or description for the
abbreviation.
The HTML Bring Attention To element (<b>
) is used to draw the reader’s attention to
the element’s contents, which are not otherwise granted special importance.
The HTML Bidirectional Isolate element (<bdi>
) tells the browser’s bidirectional
algorithm to treat the text it contains in isolation from its surrounding text.
The HTML Bidirectional Text Override element (<bdo>
) overrides the current
directionality of text, so that the text within is rendered in a different direction.
The HTML <br>
element produces a line break in text (carriage-return). It is useful
for writing a poem or an address, where the division of lines is significant.
The HTML Citation element (<cite>
) is used to describe a reference to a cited
creative work, and must include the title of that work.
The HTML <code>
element displays its contents styled in a fashion intended to
indicate that the text is a short fragment of computer code.
The HTML <data>
element links a given content with a machine-readable translation.
If the content is time- or date-related, the <time>
element must be used.
The HTML <del>
element represents a range of text that has been deleted from a
document.
The HTML Definition element (<dfn>
) is used to indicate the term being defined
within the context of a definition phrase or sentence.
The HTML <em>
element marks text that has stress emphasis. The <em>
element can
be nested, with each level of nesting indicating a greater degree of emphasis.
The HTML <i>
element represents a range of text that is set off from the normal
text for some reason. Some examples include technical terms, foreign language phrases, or
fictional character thoughts. It is typically displayed in italic type.
The HTML <ins>
element represents a range of text that has been added to a
document.
The HTML Keyboard Input element (<kbd>
) represents a span of inline text denoting
textual user input from a keyboard, voice input, or any other text entry device.
The HTML Mark Text element (<mark>
) represents text which is marked or highlighted
for reference or notation purposes, due to the marked passage’s relevance or importance in
the enclosing context.
The HTML <q>
element indicates that the enclosed text is a short inline quotation.
Most modern browsers implement this by surrounding the text in quotation marks.
The HTML Ruby Base (<rb>
) element is used to delimit the base text component of
a <ruby>
annotation, i.e. the text that is being annotated.
The HTML Ruby Fallback Parenthesis (<rp>
) element is used to provide fall-back
parentheses for browsers that do not support display of ruby annotations using the
<ruby>
element.
The HTML Ruby Text (<rt>
) element specifies the ruby text component of a ruby
annotation, which is used to provide pronunciation, translation, or transliteration
information for East Asian typography. The <rt>
element must always be contained within a
<ruby>
element.
The HTML <ruby>
element represents a ruby annotation. Ruby annotations are for
showing pronunciation of East Asian characters.
The HTML <s>
element renders text with a strikethrough, or a line through it. Use
the <s>
element to represent things that are no longer relevant or no longer accurate.
However, <s>
is not appropriate when indicating document edits; for that, use the
<del>
and <ins>
elements, as appropriate.
The HTML Sample Element (<samp>
) is used to enclose inline text which represents
sample (or quoted) output from a computer program.
The HTML <small>
element represents side-comments and small print, like copyright
and legal text, independent of its styled presentation. By default, it renders text within
it one font-size small, such as from small
to x-small
.
The HTML <span>
element is a generic inline container for phrasing content, which
does not inherently represent anything. It can be used to group elements for styling
purposes (using the class
or id
attributes), or because they share
attribute values, such as lang
.
The HTML Strong Importance Element (<strong>
) indicates that its contents have
strong importance, seriousness, or urgency. Browsers typically render the contents in bold
type.
The HTML Subscript element (<sub>
) specifies inline text which should be displayed
as subscript for solely typographical reasons.
The HTML Superscript element (<sup>
) specifies inline text which is to be displayed
as superscript for solely typographical reasons.
The HTML <time>
element represents a specific period in time.
The HTML Unarticulated Annotation Element (<u>
) represents a span of inline text
which should be rendered in a way that indicates that it has a non-textual annotation.
The HTML Variable element (<var>
) represents the name of a variable in a
mathematical expression or a programming context.
The HTML <wbr>
element represents a word break opportunity—a position within text
where the browser may optionally break a line, though its line-breaking rules would not
otherwise create a break at that location.