Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following HTML attributes is used to specify the background color of a page ?

  • A.bgcolor
  • B.background
  • C.color
  • D.bg-color

Answer: A

The attribute is bgcolor.

In older HTML, the bgcolor attribute of the body tag, as in <body bgcolor="yellow">, set the background colour of a page. (Modern HTML uses the CSS property background-color instead.)

The background attribute set a background image, color is an attribute of the old font tag for text colour, and bg-color is not an HTML attribute.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.