Typography
Inline elements
- Link
- The
a HTML element, or anchor element, with its href attribute, creates
a hyperlink to web pages, files, email addresses, locations in the same page, or anything else
a URL can address. - Abbreviation
- The
abbr HTML element represents an abbreviation or acronym. The optional title attribute can provide an explanation for the abbreviation. - Strong
- The
strong HTML element indicates that its contents have strong importance, seriousness,
or urgency. Browsers typically render the contents in bold type. - Bold
- The
b HTML element is used to draw the reader's attention to the element's contents,
which are not otherwise granted special importance. - Italic
- The
i HTML element represents a range of text that is set off from the normal text
for some reason, such as idiomatic text, technical terms, taxonomical designations, among others. Code - The
code element displays its contents styled in a fashion intended to indicate that
the text is a short fragment of computer code. By default, the content text is displayed using
the user agent's default monospace font. - Emphasis
- The
em HTML element marks text that has stress emphasis. The element can be nested,
with each level of nesting indicating a greater degree of emphasis. - Cite
- The
cite HTML element is used to mark up the title of a cited creative work. The reference
may be in an abbreviated form according to context-appropriate conventions related to citation
metadata. Deleted - The
del HTML element represents a range of text that has been deleted from a document. - Inserted
- The
ins HTML element represents a range of text that has been added to a document. - Keyboard key
- The
kbd HTML element represents a span of inline text denoting textual user input
from a keyboard, voice input, or any other text entry device. - Highlight
- The
mark HTML element represents text that is marked or highlighted for reference
or notation purposes due to the marked passage's relevance in the enclosing context. Inline Quote
- The
q HTML element indicates that the enclosed text is a short inline quotation. Strikethrough - The
s HTML element renders text with a strikethrough, or a line through it. Use the
element to represent things that are no longer relevant or no longer accurate. - Small
- The
small HTML element represents side-comments and small print, like copyright and
legal text, independent of its styled presentation. - Textsub
- The
sub HTML element specifies inline text that should be displayed as subscript for
solely typographical reasons. Subscripts are typically rendered with a lowered baseline using smaller
text. - Textsup
- The
sup HTML element specifies inline text that is to be displayed as superscript
for solely typographical reasons. Superscripts are usually rendered with a raised baseline using
smaller text. - Underline
- The
u HTML element specifies inline text that is to be displayed with an
underline for solely typographical reasons. Note: The u element is deprecated; it
is advised to use CSS to style text instead. - Variable
- The
var HTML element represents the name of a variable in a mathematical expression
or a programming context.