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
Business Studies,
3 months ago
Math,
3 months ago
Math,
7 months ago
Hindi,
7 months ago
English,
1 year ago
Math,
1 year ago
Political Science,
1 year ago