+ 2
* bgcolor is an html attribute, "DEPRECATED" by the W3C since HTML4 in favor of CSS styles.Â
* background-color is a CSS property, that can be short-handed with background, together with other background-properties.
e.g.-
(html attribute)
<body bgcolor="red">
(css property)
body {
background-color: "red";
}
[the later one is recommended]
https://stackoverflow.com/questions/36863849/what-should-use-bgcolor-or-background-color