HTML-A Step Ahead Series Part V
Greetings!!!
A Warm Welcome to you all. hope we are well familiar with the formation of the new webpage its sturcture and the basic elements.. Now the formatting of these text and other elements are also
TeleType Tag:-
The tag is used to give a font style
Syntax:– <tt>.. </tt>
Type:– Conatiner Tag Contains Text
Purpose:– used to renders as teletype or mono spaced text
Example:– <tt>Teletype text</tt>
Optional Attributes:– none.
Italic Tag:-
The tag is used to give a font style
Syntax:– <i>.. </i>
Type:– Conatiner Tag Contains Text
Purpose:– used to renders as italic text
Example:– <i>Italic text</i>
Optional Attributes:– none.
UnderLine Tag:-
The tag is used to give a font style
Syntax:– <u>.. </u>
Type:– Conatiner Tag Contains Text
Purpose:– used to renders text as underlined
Example:– <u>underline text</u>
Optional Attributes:– none.
Note:– Deprecated
Bold Tag:-
The tag is used to give a font style
Syntax:– <b>.. </b>
Type:– Conatiner Tag Contains Text
Purpose:– used to renders as bold text
Example:– <i>Bold text</i>
Optional Attributes:– none.
Big Tag:-
The tag is used to give a font style
Syntax:– <big>.. </big>
Type:– Conatiner Tag Contains Text
Purpose:– used to renders as big text the big from the surrounding text
Example:– <big>big text</big>
Optional Attributes:– none.
Small Tag:-
The tag is used to give a font style
Syntax:– <small>.. </small>
Type:– Conatiner Tag Contains Text
Purpose:– used to renders as small text the small from the surrounding text
Example:– <small>small text</small>
Optional Attributes:– none.
Emphasized Tag:-
Syntax:– <em>.. </em>
Type:– Conatiner Tag Contains Text
Purpose:– used to renders emphasized text
Example:– <em>Emphasized text</em>
Optional Attributes:– none.
Strong Emphasized Tag:-
Syntax:– <strong>.. </strong>
Type:– Conatiner Tag Contains Text
Purpose:– used to renders strong emphasized text
Example:– <strong>Strong text</strong>
Optional Attributes:– none.
Defination Term Tag:-
Syntax:– <dfn>.. </dfn>
Type:– Conatiner Tag Contains Text
Purpose:– used to renders definition term
Example:– <dfn>Definition term</dfn>
Optional Attributes:– none.
Computer Code Tag:-
Syntax:– <code>.. </code>
Type:– Conatiner Tag Contains Text
Purpose:– used to renders Computer Code as Text
Example:– <code>Computer code text</code>
Optional Attributes:– none.
Sample Computer Code Tag:-
Syntax:– <samp>.. </samp>
Type:– Conatiner Tag Contains Text
Purpose:– used to renders Sample Computer Code as Text
Example:– <samp>Sample Computer code text</samp>
Optional Attributes:– none.
Variable Tag:-
Syntax:– <var>.. </var>
Type:– Conatiner Tag Contains Text
Purpose:– Defines a Varible
Example:– <var>Variable</var>
Optional Attributes:– none.
Citation Text Tag:-
Syntax:– <cite>.. </cite>
Type:– Conatiner Tag Contains Text
Purpose:– Defines Citation
Example:– <cite>Citation</cite>
Optional Attributes:– none.
Note:– Citations are found in bibliographies and indexes. A citation is a reference to a work, such as a book or a journal article – it provides the necessary information needed to locate the work. A book citation provides the author, title, publisher, publication place
Super Script Text Tag:-
Syntax:– <sup>.. </sup>
Type:– Conatiner Tag Contains Text
Purpose:– uswed to give a Super Script text
Example:– this is<sup>Super Script</sup> text
Optional Attributes:– none.
Sub Script Text Tag:-
Syntax:– <sub>.. </sub>
Type:– Conatiner Tag Contains Text
Purpose:– uswed to give a Sub Script text
Example:– this is<sup>Sub Script</sup> text
Optional Attributes:– none.
The Last tag we are going to cover in this topic is font tag it is also deprecated and stylesheets are more preferable.. but we have to take a look on it..
Font Tag:-
This is not supported in XML and depracted in HTML
Syntax:– <font>….</font>
Type:– Container Tag End Tag is necessary.
Purpose:– This tag defines diffrent attributes of the font
Example:– <font>Sample Text</font>
Optional Attributes:– Following are the attributes of the Font Tag
size
Values:- 1-7 default 3 even if not provided If basefont is specified you can specify a number from -6 to 6
Purpose:- togive the text sixe
Example :– <font size=”5″>Sample Text.</Font>
Color
Values:- any vaild color name or hexadecimal code
Purpose:- togive the text color
Example :– <font color=”red”>Sample Text.</Font>
Face
Values:- any vaild list of fonts name seprated by coma if the first font is not avilable on the system then the browser will search for the secon and so on till it finds a sutable match or list ends.
Purpose:- togive the text face
Example :– <font face=”Arial,Tme New Roman,Garmond”>Sample Text.</Font>
++
Thanks and Regards
Meetu Choudhary
Popularity: 2%
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.










Leave your response!
You must be logged in to post a comment.