Advertisements
Advertisements
Question
Identify the error(s) in the following HTML code. Also write the correct code.
<BODY Color = “Red” background = ”School.jpg”>Code Writing
Short Answer
Advertisements
Solution
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
Is there an error in this question or solution?
