CBSE Class 10 Computer Applications Question 149 of 176

HTML I — Basic HTML Elements — Question 22

Back to all questions
22
Question

Question 18(ii)

What is wrong in the following coding ?

<FONT name = "Arial", 
type = "Bold" size = 3>
Answer

The <FONT> tag has three attributes :

  1. face — It defines the font type
  2. color — It sets the color of font
  3. 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">