Computer Science, asked by shanvinigam, 3 months ago

background colour of an HTML element in short​

Answers

Answered by Nikitacuty
4

Answer:

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.

Explanation:

Please mark me as brainliest answer

Answered by nituajmaninj
0

Answer:

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.

Similar questions