Formatting (Physical) tags: Formatting tags are used to apply formatting to the text. They render the text in different formats according to the tag used. The common formatting tags are listed below. The listed tags are known as physical tags. Physical tags define how the text should be displayed in the browser. They control the Physical characteristics of the text.
Tag | Description |
<b> | Defines bold text |
<i> | Defines italic text |
<u> | Defines underlined text |
<big> | Defines big text |
<small> | Defines small text |
<sub> | Defines subscripted text |
<sup> | Defines superscripted text |
<tt> | Defines teletype text |
<strike> | Strikes off the text |
<blink> | Makes the text blinking |
<font> | Allows us to set font-face, color and size |
<center> | Aligns the text in center |
Example:
<html> <body> <B>Hello </B> <BR> <I> Hello </I> <BR> <U> Hello </U> <BR> H<sub>2</sub>O <BR> x<sup>2</sup>y <BR> <TT>Hello<TT> <BR> <strike>Hello</strike> <BR> <blink>Hello</blink> <BR> <font face="arial"> Hello </font> <center>Hello</Center> <BR> </body> </html> |
0 comments:
Post a Comment