English

What is wrong in the following coding? <BODY color = “Red” background = “Myimage.jpg”>

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]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 3 HTML- I: Basic HTML Elements
Assignment | Q 18. (v) | Page 128
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×