Distinguish between BASEFONT SIZE and FONT SIZE tag.

Q3. Distinguish between the <BASEFONT SIZE> and the <FONT SIZE> tag with the help of an example for each?

Ans. The <BASEFONT SIZE> tag is used to change the default font size in a Web page, whereas, the <FONT SIZE> tag is used to change the font size of the text which is enclosed in this tag.

Example for <BASEFONT SIZE>:

<HTML>

<HEAD>

<BASEFONT COLOR=”red” FACE=”Algerian” SIZE=”6”>

<TITLE> WELCOME TO HTML</TITLE>

</HEAD>

<BODY>

This is an example of BASEFONT tag

</BASEFONT>

</BODY>

<HTML>

 

Example for <FONT >:

<HTML>

<HEAD>

<TITLE> WELCOME TO HTML</TITLE>

</HEAD>

<BODY>

<FONT COLOR=”red” FACE=”Algerian” SIZE=”10”>

This is an example of FONT tag

</FONT>

</BODY>

<HTML>

Leave a Reply

Your email address will not be published. Required fields are marked *

10 Views
%d bloggers like this: