Formatting Tags

In word processing, you may be familiar with formatting options like bold and italics or maybe underline. These formatting options are also available in HTML too in the form of formatting tags. Below is a list of formatting tags and its description:

Formatting
<acronym> Defines an acronym
<abbr> Defines an abbreviation
<address> Defines contact information for the author/owner of a document
<b> Defines bold text
<bdo> Defines the text direction
<big> Defines big text
<blockquote> Defines a long quotation
<center> Deprecated. Defines centered text
<cite> Defines a citation
<code> Defines computer code text
<del> Defines deleted text
<dfn> Defines a definition term
<em> Defines emphasized text
<font> Deprecated. Defines font, color, and size for text
<i> Defines italic text
<ins> Defines inserted text
<kbd> Defines keyboard text
<pre> Defines preformatted text
<q> Defines a short quotation
<s> Deprecated. Defines strikethrough text
<samp> Defines sample computer code
<small> Defines small text
<strike> Deprecated. Defines strikethrough text
<strong> Defines strong text
<sub> Defines subscripted text
<sup> Defines superscripted text
<tt> Defines teletype text
<u> Deprecated. Defines underlined text
<var> Defines a variable part of a text
<xmp> Deprecated. Defines preformatted text
EXAMPLES:HTML syntax:

&ltb&gt This text is bold &ltb&gt

&lti&gt This text is in italics &lti&gt

&ltb&gt&lti&gt This text is bold and in italics &ltb&gt&lti&gt

Output:

This text is bold

This text is in italics

This text is bold and in italics