Table of Contents

HTML Formatting Elements

  • The <b>  element is use for bold text, without any extra importance.
  • The <strong> element is use for  strong text, with added semantic “strong” importance. It is similar to Bold tag element.
  • The <i> element is  use for italic text, without any extra importance.
  • The <em> element is use for emphasized text, with added semantic importance.
  • The <small> element is use smaller text.
  • The <mark> element is use for marked/highlighted text. Default color is yellow.
  • The <del> element is use for deleted/removed text.
  • The <ins> element is use for inserted/added text.
  • The <sub> element use for subscripted text.
  • The <sup> element is use for superscripted text.
  • The <q> element is use for a short quotation. 
  • The <blockquote> element defines a section that is quoted from another source. Browsers usually indent elements.
  • The <address> element is use for element defines contact information (author/owner) of a document or an article.
  • The <cite> element is use for the title of a work.
  • The <bdo> element is use for  element defines bi-directional override.it is used to override the current text direction. dir attribute is use for direction.
Example of HTML Formatting Elements
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p>This a <b>bold</b> tag.</p>
<p>This is a <strong>strong </strong>tag.</p>
<p>This is a <i> Italic</i> tag.</p>
<p>This is a <em>emphasized</em> tag.</p>
<p>This is a <small>small</small> tag.</p>
<p>This is a <q>short quotation</q></p>
<blockquote>This is a block quote tag</blockquote>
<address>
Written by Er.Ashish Maurya.<br>
Visit us at nielitbhu:<br>
Example.com<br>
Box 564, Lanka BHU Varanasi<br>
India.
</address>
<p><cite>The Scream</cite> by Mohan Ranga. Painted in 1254.</p>
<bdo dir="rtl">This text will be written from right to left</bdo>
</body>
</html>