English

Differentiate between bgcolor and background attributes of <body> tag. Write one HTML statement explaining the use of each attribute.

Advertisements

Question

Differentiate between bgcolor and background attributes of <body> tag. Write one HTML statement explaining the use of each attribute.

Distinguish Between
Advertisements

Solution

  bgcolor attribute background attribute
1. This attribute sets the background color of the webpage. This attribute sets a background image for the webpage
2. e.g. <body bgcolor="lightblue"> e.g. <body background="image.jpg">
shaalaa.com
  Is there an error in this question or solution?
2023-2024 (March) Set 4
Advertisements
Share
Notifications



      Forgot password?
Use app×