| Shaalaa.com" /> " />" />
हिंदी

Identify the error(s) in the following HTML code. Also write the correct code. <BODY Color = "Red" background = "School.jpg">

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:

  1. The color attribute should be written as bgcolor.
  2. The attributes bgcolor and background should not be written together, as the background attribute overrides the bgcolor attribute.

The correct code is:

<BODY background = “School.jpg”>
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 3: HTML- I: Basic HTML Elements - Solved Examination Questions [पृष्ठ १३७]

APPEARS IN

सुमिता अरोरा Computer Applications [English] Class 10
अध्याय 3 HTML- I: Basic HTML Elements
Solved Examination Questions | Q 4. | पृष्ठ १३७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×