Computer Science, asked by laldeepak202, 3 months ago

How to add a background color in HTML? *

Answers

Answered by digantapalcroll
2

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 toadd background color.

Answered by RedCream28
14

Answer:

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

Hope u like it!!!

Have a happy day!!!

See u soon!!!

Similar questions