Explain Font tag with its attributes.
Answers
<FONT> tags defines size, style and color of a short segment of text. FONT element requires following attributes. We can use the font attribute in three ways depending on the attribute that you use. It contains the following three attribute -
- COLOR Attribute
- SIZE Attribute
- FACE Attribute
(1) COLOR Attribute : The Color attribute of <FONT> tag is used to change the color of the text written in any font.The color names can be given of hexadecimal string characters (RGB Values) such as #RRGGBB and so on and can be included to designate the desired colors.
Example : <FONT COLOR="RED">
Think Better Be Better</FONT>
(2) SIZE Attribute : The SIZE attribute in a <FONT> tag is used to set or change the size of the text. The size of the text of any font can be set using Absolute or Relative size values.
Syntax : <FONT COLOR=COLOR NAME>
(3) FACE Attribute : The FACE attribute specifies a typeface that you would like to use the text enclosed by the font.
Syntax : <FONT FACE="FONT NAME">
Explanation:
colour attribute
size attribute
face attribute,