Advertisements
Advertisements
प्रश्न
Identify the error(s) in the following HTML code. Also write the correct code.
<BODY Color = “Red” background = ”School.jpg”>कोड लेखन
लघु उत्तरीय
Advertisements
उत्तर
The errors are:
- The
colorattribute should be written asbgcolor. - The attributes
bgcolorandbackgroundshould not be written together, as thebackgroundattribute overrides thebgcolorattribute.
The correct code is:
<BODY background = “School.jpg”>shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
