Page 84 - TechPluse_C7_Flipbook
P. 84
<p> This is a normal text without the use of Bold, Italic or Underline
tag</p>
<p><b>This text is in bold.</b></p>
<p><i>This text is in italics.</i></p>
<p><u>This text is underlined.</u></p>
</body>
</html>
Using styles tags
The <SUP> Tag
The superscript tag is written as <SUP>. This tag is used to turn the enclosed text into a superscript.
2
For example, E=mc is coded as E=mc<sup>2</sup>
The <SUB> Tag
The subscript tag is written as <SUB>. This tag is used to turn the enclosed text into a subscript.
For example, H O is coded as H<sub>2</sub>O
2
<html>
<head>
<title> Superscript and Subscript </title>
</head>
<body>
<h1>The uses of Superscript and Subscript tags </h1>
<p> These tags are used to show text as superscript or subscript of
another text like chemical formulas or mathematical equations.</p>
<p><b>Example of Superscript text</b></p>
<p> (a + b)<sup>2</sup> = a<sup>2</sup> + b<sup>2</sup> + 2ab</p>
<p><b>Example of Subscript text</b></p>
<p>H<sub>2</sub>O</p>
<p>H<sub>2</sub>SO<sub>4</sub></p>
</body>
</html>
82 Premium Edition-VII

