These tags are used for the formatting of the text such as underline, bold, italic, font, size, color of the text. | ||||||||||||||||||||||||||
All these character formatting Tags are defined in the table shown below: | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
<b> Tag | ||||||||||||||||||||||||||
The <b> tag is used to make the text bold. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<b> …………….text………</b> | ||||||||||||||||||||||||||
<i> Tag | ||||||||||||||||||||||||||
The <i> tag displays the italic text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<i> …………….text………</i>; | ||||||||||||||||||||||||||
<tt> Tag | ||||||||||||||||||||||||||
The <tt> tag displays the typewriter text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<tt> …………….text………</tt> | ||||||||||||||||||||||||||
<u> Tag | ||||||||||||||||||||||||||
The <u> tag displays the underlined text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<u> …………….text………</u> | ||||||||||||||||||||||||||
<em> Tag | ||||||||||||||||||||||||||
The <em> tag displays the emphasized text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<em> …………….text………</em> | ||||||||||||||||||||||||||
<big> Tag | ||||||||||||||||||||||||||
The <big> tag displays the big text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<big> …………….text………</big> | ||||||||||||||||||||||||||
<small> Tag | ||||||||||||||||||||||||||
The <small> tag displays the small text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<small> …………….text………</small> | ||||||||||||||||||||||||||
<strong> Tag | ||||||||||||||||||||||||||
The <strong> tag displays strong text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<strong> …………….text………</strong> | ||||||||||||||||||||||||||
<sub> Tag | ||||||||||||||||||||||||||
The <sub> tag displays text in subscripted format. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<sub> …………….text………</sub> | ||||||||||||||||||||||||||
<sup> Tag | ||||||||||||||||||||||||||
The <sup> tag displays superscripted text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<sup> …………….text………</sup> | ||||||||||||||||||||||||||
<bdo> Tag | ||||||||||||||||||||||||||
The <bdo> tag defines the direction of the text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<bdo> …………….text………</bdo> | ||||||||||||||||||||||||||
<font> Tag | ||||||||||||||||||||||||||
The <font> tag defines the font, color, size of the text. | ||||||||||||||||||||||||||
Format: | ||||||||||||||||||||||||||
<font face=”font_name” color=”color_name” size=”number”>……..text………</font> | ||||||||||||||||||||||||||
Examples of the Text Formatting tags | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
You have read all the basic tags, So now lets do some practical. | ||||||||||||||||||||||||||
Just write/copy this example on any text editor new file and save the file and open in the browser and see how it looks. | ||||||||||||||||||||||||||
Example: | ||||||||||||||||||||||||||
<html> <body> <b>This text is bold</b> <br> <strong> This text is strong </strong> <br> <big> This text is big </big> <br> <em> This text is emphasized </em> <br> <i> This text is italic </i> <br> <small> This text is small </small> <br> <u> this is underlined text </u> <br> This text contains <sub> subscript </sub> <br> This text contains <sup> superscript </sup> <br> The use of font tag <font face=”arial” size=”3″ color=”green”> this is use of font tag</font> </body> </html> |
||||||||||||||||||||||||||
Page in browser will Look Like: | ||||||||||||||||||||||||||
![]() |