| Shaalaa.com" /> " />" />
English

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

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:

  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
  Is there an error in this question or solution?
Chapter 3: HTML- I: Basic HTML Elements - Solved Examination Questions [Page 137]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 3 HTML- I: Basic HTML Elements
Solved Examination Questions | Q 4. | Page 137
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×