Advertisements
Advertisements
Question
What is wrong in the following coding?
<BODY color = “Red” background =
“Myimage.jpg”>Code Writing
Advertisements
Solution
The attribute used to set the colour of text in a document is text.
The correct code is as follows:
<BODY text = "Red" background = "Myimage.jpg">shaalaa.com
Is there an error in this question or solution?
Chapter 3: HTML- I: Basic HTML Elements - Assignment [Page 128]
