HTML Formatting Tags

  admin       February 7, 2020      608

HTML Formatting Tags

HTML Formatting Tags are used for the html document formatting as per requirement we can use commonly used terms like : headings, text bold, italic, underline, strike, super script, sub script, displays deleted text and many more.

HTML Provides 6 types of heading style. The largest heading style is <h1> and smallest heading style is <h6>

Example Heading style


<!DOCTYPE html>
<html>
<head>
<title>formatting tag</title>
</head>
<body>
<h1>Some Heading Styles:</h1>
<hr>
<h1>This is largest heading style</h1>
<h2>This is second largest heading style</h2>
<h3>This is medium heading style</h3>
<h4>This is another heading style</h4>
<h5>This second smallest heading style</h5>
<h6>This is smallest heading style</h6>
<hr>

Example Video

Some HTML Formatting Tags:


<!DOCTYPE html>
<html>
<head>
<title>formatting tag</title>
</head>
<body>
<b>This is bold style</b>
<br>
<strong>This is another bold style</strong>
<br>
<i>This is italic style</i>
<br>
<em>This is another italic style</em>
<br>
<u>This is underline style</u>
<br>
<ins>This is another underline style</ins>
<br>
<strike>This is strike style</strike>
<br>
<del>This is another strike style it displays deleted text</del>
<br>
(a+b)<sup>2</sup>=a<sup>2</sup>+2ab+b<sup>2</sup>
<br>
H<sub>2</sub>O
<br>
<font size="7" color="red" face="arial">Welcome to Hi Tech</font>
</body>
</html>

Example Video of formatting tags

Note: <br> Tag is used for line break and <hr> tag is used for horizontal line

Example of preview result of html formatting tags

formatting tags

Leave a Reply

Your email address will not be published. Required fields are marked *