What is the difference between a BASEFONT and FONT tags? | question and answer !


Question:-

What is the difference between a BASEFONT and FONT tags?

Answer:-

The BASEFONT tag is used to set font face, Size and color of the whole HTML document. whenever we want to change the font size for any particular line or paragraph. we simply add or subtract some value to the font size we have set initially. +/- 1 in the value brings about an approximate 20% change in the original size. E.g., <BASEFONT SIZE = 4 FACE ="TAHOMA" COLOR="BLUE">

The FONT tag allows us to set the size, style and color of a short segment of text. Once a /FONT tag is encountered, the following text is set in the default size set by BASEFONT tag. E.g., <FONT FACE="ARIAL BLACK" COLOR="YELLOW" SIZE="6">.

NOTE - All capital work include < > this tag to starting and closing starting < and closing >.

No comments