Ways for changing the Appearance of TEXT in HTML

Font style Tags: These tags change the appearance of text. They are also known as Physical markup. They are treated identically by all browsers.

Bold: The bold tag is used, when you need to emphasize the text. Type <B> before typing the text that you want to display as bold and type </B> after the text.

For examples: <B>BASIC HTML COURSE</B>

Italic: To divert the attention of a reader on any important information, Italic element is used. This element mark up the text in Italic style. Type <I>tag before typing the text that you want to display in Italic and type</I>tag after the text.

For example:<I>Organised by :Kumarstudies</I>

Underline: This tag underlines the text enclosed in <U>and </U>tags.

For examples:<U>LEARN HTML FROM KUMARSTUDIES</U>

You can observe the effect of the tag in the following programs:-


TYPEWRITER: The <TT>tag displays the enclosed  text in Typewriter font.

For examples: <TT>Kips Team</TT>

STRIKE: This element draws a line through the middle of the text, enclosed in <STRIKE> and </STRIKE>element. Tag <S> and </S> will also have the same effect.

SUBSCRIPT: The subscript element displays the text or numbers in subscript format. The enclosed text or number in<SUB> and </SUB>tag appears below the base line and in smaller size.

SUPERSCRIPT: The superscript element displays the enclosed text or numbers in superscript format. The <SUP> and </SUP>tag places the text above the base line which means at the top of the proceeding text in small size. You can observe the effect of these tags in the following program :-


BIG: To make the text appear larger than surrounding text,<Big>tag is used. The text is enclosed within<BG> and </BG>tags.

SMALL: To make the text appear smaller in size than the surrounding text,<Small>tag is used. The small tag has the same effect of <Font Size=”1”>.If the text is already of size “1” then HTML ignores the tag. You can observe the effect of these tags in following programs:-


PRE(Preformatted): Web browser ignores the spaces and lines within the text while displaying it as a webpage. To retain the spacing of text or to display the preformatted spaces,<PRE>tag is used, It is used to type poems, tabular data, and so on. Type <PRE>tag before the text and at the end of it type </PRE>. You can observe the effect of this tag in the following programs:-