Text Formatting
] ] ] ] ] ] ] ] ]
There are 2 main types of tags relevant to text formatting: Logical Tags and Physical Tags.
Logical Tags
Logical Markup Tags
Citation = <CITE>…</CITE> Browsers normally display a citation in an italic font. |
It is used to indicate the citation of a quotation. Also, it can be used to indicate the title of a book or an article. |
Source Code = <CODE>…</CODE> Browsers normally display a source code in a monospaced font. |
It is used to indicate a small amount of computer code. |
Emphasis = <EM>…</EM> Browsers normally display an emphasis in an italic font. |
It is used to denote emphasis of the affected text. |
Strong Emphasis = <STRONG>…</STRONG> Browsers normally display a strong emphasis in a bold font. |
It is used to indicate that the text should be treated as strongly emphasized text. |
Keyboard = <KBD>…</KBD> Browsers usually display a keyboard in a monospaced typewriter font. |
It is used to indicate a user keyboard entry. |
Sample = <SAMP>…</SAMP> Browsers usually display a sample in a monospaced font. |
It is used to indicate a sequence of literal characters which are a few characters that are intended to be precisely identified. |
Variable = <VAR>…</VAR> Browsers usually display a variable in an italic font. |
It is used to indicate a variable name. |
Physical Tags
Logical Markup Tags
Bold = <B>…</B> |
Bold font |
Italic = <I>…</I> |
Italic font |
Underlined = <U>…</U> |
Underlined font |
Teletype = <TT>…</TT> |
Monospaced typewriter font |