Formatting Characters
Formatting Characters
By
M.HEMAMALINI
⚫ In a web Page , the characters can be made
bold, italics, etc, by using some HTML tags.
⚫ There are two methods of formatting
characters.
⚫ They are
⚫ Logical styles
⚫ Physical styles
⚫ The logical styles inform the browser what
kind of text to present.
⚫ The browser takes care of how to present it .
⚫ For example consider <em> tag.
⚫ This tag says that emphasis must be given.
⚫ The browser takes care of how to present it
so that it gets the emphasis required.
Tag Meaning
<I>….</I> Italics
<u>…</u> underline
<strike>…</strike> Strikethrough
<sub>…</sub> Subscript
<sup>…</sup> Superscript
⚫ <body>
⚫ <br><b>St Xavier's College - Bold</b>
⚫ <br><i> St xavier's College - Italics</I>
⚫ <br><tt><St Xavier's College - teletype</tt>
⚫ <br><u> St Xavier's College - underline</u>
⚫ <br><strike> St Xavier's College - Strikethrough</strike>
⚫ <br> St Xavier's <sub> College </sub>
⚫ <br> St Xavier's <sup> College</sup>
⚫ <br><brg> St Xavier's College </big>
⚫ <br><small> St Xavier's College </small>
⚫ </body>
⚫ </html>
⚫ The <sub> and <sup> tags are used to
represent mathematical and chemical
formulae.
<br>
<h1> Chemical equation </h1>
<hr>
<br>
<h2><i>
C<sub>2</sub>H<sub>5</sub>OH+PCL<sub>5</sub>=C<sub>2</sub>H<sub>5
</sub>CL+POCL<sub>3</sub>+HC.
<br>
4H<sub>3</sub>Po<sub>3</sub>=3H<sub>3</sub>PO<sub>4</sub>+PH<sub>3
</sub>
<br>
PCL<sub>3</sub>+CL<sub>=Pcl<sub>5</sub>
</i>
</h2>
</body>
Font tag