HTML Tags: Others – Inline
These are the rest of the HTML block tags.
Tag | Type | Description |
---|---|---|
Bold/italic equivalents | ||
<em> | Inline | Represents an emphasis on text (italic) |
<strong> | Inline | Represents a strong importance on text (bold) |
Text semantics | ||
<abbr> | Inline | Represents an abbreviation |
<cite> | Inline | Represents a citation |
<dfn> | Inline | Represents a definition |
<mark> | Inline | Represents a marked/highlighted text |
<q> | Inline | Represents a short quotation |
<small> | Inline | Represents a small print |
<time> | Inline | Represents a time |
<var> | Inline | Represents a variable (e.g. in math) |
<code> | Inline | Represents a fragment of code |
<kbd> | Inline | Represents a keyboard input |
<samp> | Inline | Represents a sample program output |
Text directionality | ||
<bdi> | Inline | Isolates the directionality of a text |
<bdo> | Inline | Overrides the directionality of a text |
Ruby | ||
<ruby> | Inline | Represents small annotations for a text (e.g. a pronunciation guide) |
<rt> | Inline | Represents a ruby text |
<rp> | Inline | Represents a ruby fallback parenthesis |
Misc. | ||
<data> | Inline | Associates content with machine-readable data |
<wbr> | Inline | Denotes a word-break oppurtunity |
<em>
Represents an emphasis on text. Usually rendered as an italic text.
<em>
represents stress emphasis of its contents<i>
represents text that is set off from the normal prose (e.g. a foreign word, fictional character thoughts, etc.)<cite>
should be use for any title of work (e.g. book/movie title)
<strong>
Represents a strong importance on text. Usually rendered as a bold text.
<strong>
represents content with strong importance<b>
is used to draw attention to text without indicating that it's more important
<abbr>
Represents an abbreviation.
<cite>
Represents a citation.
More information can be found in [ISO-0000].
First sentence in Nineteen Eighty-Four by George Orwell (Part 1, Chapter 1).
<dfn>
Represents a definition (a term being defined).
<mark>
Represents a marked/highlighted text.
<q>
Represents a short quotation.
Possible attributes
cite=[...]
— URL to the source of quotation
I'm sorry, Dave. I'm afraid I can't do that.
<small>
Represents a small print.
Feel the power*
*) Batteries not included<time>
Represents a specific period in time. It may specify:
- a time on a 24-hour clock, e.g.
14:54:39
- a precise date in the Gregorian calendar (with optional time and timezone information), e.g.
2011-11-18T14:54:39.929-04:00
- a valid time duration, e.g.
PT2H30M
Possible attributes
datetime=[...]
— a date and/or time value in any of the valid formats
The Cure will be celebrating their 40th anniversary on in London's Hyde Park.
The concert starts at and you'll be able to enjoy the band for at least .
<var>
Represents a variable (e.g. in math).
<code>
Represents a fragment of code.
var
and let
are used to a declare variable.<kbd>
Represents a keyboard input.
<samp>
Represents a sample program output.
Press F1 to continue
<bdi>
Bidirectional Isolate: isolates the directionality of a text from the surrounding text.(Prevents directionality of the text inside <bdi>
from influencing the directionality of the surrounding text, and vice-versa.
Useful when LTR text is likely to meet RTL text.)
- اَلأَعْشَى - 1st place
- Jerry Cruncher - 2nd place
- اَلأَعْشَى - 1st place
- Jerry Cruncher - 2nd place
<bdo>
Bidirectional override: overrides the directionality of a text.Possible attributes
dir=[...]
— directionality of text. Can be:ltr
(left-to-right)rtl
(right-to-left)
<ruby>
, <rt>
, and <rp>
<ruby>
represents small annotations for a text (e.g. a pronunciation guide for East Asian languages).
<rt>
represents the ruby text.
<rp>
represents the ruby fallback parenthesis that gets displayed on non-supporting browser.
<data>
Associates content with machine-readable data.
New Products:
- Book A
- Book B
- CD Cassette
<wbr>
Denotes a word-break oppurtunity.
Fernstraßenbauprivatfinanzierungsgesetz
Fernstraßen
References
- HTML elements reference (MDN) — https://developer.mozilla.org/en-US/docs/Web/HTML/Element