My Profile

Friday, January 21, 2011

Text Formatting Tags


<B> ... </B>  Tag

The Bold element specifies that the text should be rendered in boldface, where available. Otherwise, alternative mapping is allowed.

Example :-
The instructions <B>must be read</B> before continuing.

<BIG> ... </BIG>   Tag

The <BIG> element specifies that the enclosed text should be displayed, if practical, using a big font (compared with the current font).

Example :-
This is normal text, with <BIG>this bit</BIG> being big text.

<EM> ... </EM>   Tag

The Emphasis element indicates typographic emphasis, typically rendered as italics.

Example :-
The <EM>Emphasis</EM> element typically renders as Italics.

<I> ... </I>   Tag

The Italic element specifies that the text should be rendered in italic font, where available. Otherwise, alternative mapping is allowed.

Example :-
Anything between the <I>I elements</I> should be italics.

<SMALL> ... </SMALL>   Tag

The <SMALL> element specifies that the enclosed text should be displayed, if practical, using a small font (compared with the current font).

Example :-
This is normal text, with <SMALL>this bit</SMALL> being small text.

<STRONG> ... </STRONG>   Tag

The Strong element indicates strong typographic emphasis, typically rendered in bold.

Example :-
The instructions <STRONG>must be read</STRONG> before continuing.

<SUB> ... </SUB>   Tag

The <SUB> element specifies that the enclosed text should be displayed as a subscript, and if practical, using a smaller font (compared with normal text).

Example :-
This is the main text, with <SUB>this bit</SUB> being subscript.

<SUP> ... </SUP>   Tag

The <SUP> element specifies that the enclosed text should be displayed as a superscript, and if practical, using a smaller font (compared with normal text).

Example :-
This is the main text, with <SUP>this bit</SUP> being superscript.

<STRIKE> ... </STRIKE>   Tag

The <STRIKE> ... </STRIKE> element states that the enclosed text should be displayed with a horizontal line striking through the text.  Alternative mappings are allowed if this is not practical.

NOTE : The actual element detailed in HTML specifications, is <S> ... </S>, which is also supported by the three browsers

Example :-
This text would be <STRIKE>struck through</STRIKE>

<U> ... </U>   Tag

The <U> ... </U> Elements state that the enclosed text should be rendered, if practical, underlined.  This is an HTML 3.0 element and may not be widely supported.

Example :-
The <U>main point</U> of the exercise...




Points to remember

Tag
Description
<b>
Defines bold text
<big>
Defines big text
<em>
Defines emphasized text 
<i>
Defines italic text
<small>
Defines small text
<strong>
Defines strong text
<sub>
Defines subscripted text
<sup>
Defines superscripted text
<s>
Defines horizontal line striking through the text
<strike>
Defines horizontal line striking through the text
<u>
Defines underlined text















 ----------------------------------------------------------


** If you like this post please like our page in facebook


0 comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More