FORMATTING TAGS:
There are a set of formatting tags in HTML, using which we can change the style of the text in the web page.
<b> or <strong> : used to display the text in bold face.
eg: <b> text </b>
<strong> text </strong>
<i> or <em> : These tags are used to display the text in italic style.eg: <i> text </i>
<em> text </em>
<u> or <ins> : These tags are used to insert the line under the text.
eg: <u> text </u>
<ins> text </ins>
<tt> TeliType : This tag is used to display text in 'telitype' font.
eg: <tt> text </tt>
<s> or <strike> or <del>: These tags are used to display the text as a deleted text.
eg: <s> hahaha </s>
<strike> hahaha </strike>
<del> hahaha </del>
<sub> Subscript : This tag is used to display the text below to the regular text.
eg: O <sub> 2 </sub>
<sup> superScript : This tag is used to display the text above the regular text.
eg: A<sup> 2</sup> + B <sup> 2 </sup>
<small> : This tag slightly decrease the text size.
eg: <small> text </some>
<big> : This tag slightly increase the text size.
eg: <big> text <big>
<center> : This tag is used to display the body content to the center of the web page.
eg: <center> text </center>
The following figure shows the program that uses all the formatting tags and its result follows.
FONT TAG :This tag is used to customize the font styles of the text. Using font tag we can change color of the text, we can change font face, etc..This tag is represented as <font>.
eg: <font color="blue" size="6" face="Monotype Corsiva"> This is my web page... </font> The following figure shows the usage of the font tag and its result follows: <marquee> : This tag is used to display the scrolling text on the web page.
|
No comments:
Post a Comment