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>

Output

Page Title

This a bold tag.

This is a strong tag.

This is a Italic tag.

This is a emphasized tag.

This is a small tag.

This is a "short quotation" tag.

This is a blockquote tag
Written by Er.Ashish Maurya.
Visit us at nielitbhu:
Example.com
Box 564, Lanka BHU Varanasi
India.

The Scream by Mohan Ranga. Painted in 1254.

This text will be written from right to left
What is HTML
  • HTML is the standard  for Hypertext Markup Language for Web pages.
  • The HTML elements tell the browser ...
    Click Here
Previous topic next topic What is an Element in HTML
  • An Hypertext Markup Language(HTML) element ...
    Click Here
Previous topic next topic HTML Headings
  • The HTML headings are used to define the heading ...
    Click Here
Previous topic next topic HTML Formatting Elements
  • The <b>  element is use for bold text, without ...
    Click Here
Previous topic next topic HTML Comments
  • The HTML Comment are describe the extra feature about ...
    Click Here
Previous topic next topic HTML Attributes
  • Every HTML element can have attributes.
  • The HTML Attribute ...
    Click Here
Previous topic next topic HTML Images
  • The <img> tag is empty
Note: The empty ...
Click Here
Previous topic next topic HTML Links
  • HTML links are hyperlinks.
  • HTML link default color is ...
    Click Here
Previous topic next topic HTML Table
  • An HTML table is defined with the <table> tag.
  • ...
    Click Here
Previous topic next topic Table Backgrounds You can set the table background using one of the ...
Click Here
Previous topic next topic Table Header, tbody and Footer
  • Tables are categories into three parts: ...
    Click Here
Previous topic next topic Basic to Advance table design in HTML Example 1 <!DOCTYPE> <html> <body> ...
Click Here
Previous topic next topic HTML div tag
  • The <div>  element is used for style blocks ...
    Click Here
Previous topic next topic HTML Lists
  • The list is the way to present the data ...
    Click Here
Previous topic next topic HTML Form
  • The HTML <form> element is used to collect user ...
    Click Here
English Hindi