HTML provides following tags to work with text in html documents.


Example 1: "text.html"
<html>
<head>
<title>Text</title>
</head>
<body>
<h2>Formatting Text</h2>
font size -7 : <font size="7">HTML</font><br/>
font size-3 : <font size="3">HTML</font><br/>
font color-"red" : <font color="red">HTML</font><br/>
font size-6 and color -red : <font size="6" color="red">HTML</font><br/>
bold,underline and italic : <b><u><i>Text</i></u></b><br/>
Bold :<b>HTML</b><br/>
Strong :<strong>HTML</strong><br/>
Underline :<u>HTML</u><br/>
Ins :<ins>HTML</ins><br/>
Italic :<i>HTML</i><br/>
Emapasis :<em>HTML</em><br/>
Strike :<s>HTML</s><br/>
Del :<del>HTML</del><br/>
Highlighting a text :<mark>HTML</mark>
</body>
</html>

Output:
text

Example 2: "subsup.html"
<html>
<body>
<b>Formula for Water</b> : H<sub>2</sub>O
<br/>
<b>Basic Mathematical Formula</b>
<br/>
(a+b)<sup>2</sup>=a<sup>2</sup>+b<sup>2</sup>+2*a*b
</body>
</html>

Output:
blocks

Character Escape Sequences :
Escapes sequences could be wrongfully interpreted as markup in HTML.so the following characters are reserved in HTML and must be replaced with their corresponding HTML entities: