how can the backgound color of an elements be changed?
ReportQuestion
2 years ago 718 views
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.
p{
background-color:red;
}
Thread Reply