1. Give a code to and background color to a web page?
Answers
Answered by
1
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 used with the HTML <body> tag, with the CSS property background-colour. HTML5 do not support the <body> tag bgcolor attribute, so the CSS style is used to add background colour.
Eg:
<BODY BGCOLOR = "Red">
Similar questions