Advertisements
Advertisements
Question
What is wrong in the following coding?
<FONT name = “Arial”
type = “Bold” size = 3>
Code Writing
Advertisements
Solution
The <FONT> tag has three attributes :
- face — It defines the font type
- color — It sets the color of font
- size — It sets the size of font
Type attribute is not used with <FONT> tag. To make the text bold, we use the <B> or <STRONG> tag.
The correct code is as follows:
<FONT face = "Arial" size = "3">shaalaa.com
Is there an error in this question or solution?
Chapter 3: HTML- I: Basic HTML Elements - Assignment [Page 128]
