Computer Science, asked by aashi710, 7 months ago

To add background colour on the web page, .......................... attribute is used in body tag.
1.BG
2.BACKGROUND
3.BG COLOUR
4.BGCOLOR

Answers

Answered by AGRAWALGRACY77
10

Explanation:

To set the background color in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <body> tag, with the CSS property background-color. HTML5 do not support the <body> tag bgcolor attribute, so the CSS style is used to add background color.

Answered by rjeya1974
4

BG attribute is used in body tag.

Similar questions