HTML uses elements like <b> and <i> for formatting output, like bold or italic text.
Formatting elements were designed to display special types of text:

HTML Bold and Strong Formatting

The HTML <b> element defines bold text, without any extra importance.The HTML <strong> element defines strong text, with added semantic “strong” importance.

HTML Italic and Emphasized Formatting

The HTML <i> element defines italic text.
The HTML <em> element defines emphasized text, with added semantic importance.

HTML Small Formatting

The HTML <small> element defines small text.

HTML Marked Formatting

The HTML <mark> element defines marked or highlighted text.

HTML Deleted Formatting

The HTML <del> element defines deleted (removed) of text.

HTML Inserted Formatting

The HTML <ins> element defines inserted (added) text.

HTML Subscript Formatting

The HTML <sub> element defines subscripted text.

HTML Superscript Formatting

The HTML <sup> element defines superscripted text.

HTML Pre Formatting

The HTML <pre> element defines pre defined text.

HTML <q> for Short Quotations

The HTML <q> element defines a short quotation.

HTML <blockquote> for Long Quotations

The HTML <blockquote> element defines a quoted section.

HTML <abbr> for Abbreviations

The HTML <abbr> element defines an abbreviation or an acronym.

HTML <dfn> for Definitions

The HTML <dfn> element defines the definition of a term or an abbreviation.

HTML <address> for Contact Information

The HTML <address> element defines contact information (author/owner) of a document or article.The element is usually displayed in italic.Most browsers will add a line break before and after the element.

Lets see an Example:

<!DOCTYPE html>
<HTML lang=”en-US”>
<body>
<p>This text is normal.</p>
<p><b>This text is bold</b>.</p>
<p><strong>This text is strong</strong>.</p>
<p><i>This text is italic</i>.</p>
<p><em>This text is emphasized</em>.</p>
<h2>HTML <small>Small</small> Formatting</h2>
<h2>HTML <mark>Marked</mark> Formatting</h2>
<p>My favorite color is <del>blue</del> red.</p>
<p>My favorite <ins>color</ins> is red.</p>
<p>This is <sub>subscripted</sub> text.</p>
<p>This is <sup>superscripted</sup> text.</p>
<p><q>This is a quote</q></p>
<p>Here is a quote from WWF’s website:</p>
<blockquote cite=”http://www.worldwildlife.org/who/index.html”>
For 50 years, WWF has been protecting the future of nature.
The world’s leading conservation organization,
WWF works in 100 countries and is supported by
1.2 million members in the United States and
close to 5 million globally.
</blockquote>
<p>The <abbr title=”World Health Organization”>WHO</abbr> was founded in 1948.</p>
<p>The <dfn title=”World Health Organization”>WHO</dfn> was founded in 1948.</p>
<address>
Written by Jon Doe.<br>
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>

</body>
</HTML>

web page will be displayed will display as

5

Leave a Reply