What is Bgcolor Attribute ? explain with example .
Answers
Answered by
2
Answer:
Bgcolor is used directly as an attribute of any tag in html. e.g.- <body bgcolor="red">. The bgcolor was once the correct way to specify the color to be applied to thebackground of a table. To set the background of a table with CSS, use thebackground-color property instead of the bgcolor HTML attribute.
Answered by
2
Answer:
Bgcolor attribute gives a background color.
Explanation:
<!DOCTYPE html>
<html>
<head>
<title>BG color demo</title>
</head>
<body bgcolor="red">
This background is red
</body>
</html>
Similar questions