+ 10

What's the difference between "bg-color" and "background-color"?

17th Oct 2016, 8:19 AM
Koketso Dithipe
Koketso Dithipe - avatar
4 Réponses
+ 2
The bgcolor attribute was superseded by CSS in 1996. CSS background properties: Are more reusableHave a higher priority than presentational attributesTake a wider selection of values (including translucent ones)Can be stored in an external stylesheet and cached between requestsApply more consistently across different element types
17th Oct 2016, 2:21 PM
Abhay Sachan
Abhay Sachan - avatar
+ 6
# bgcolor is a HTML attribute. # background-color is a CSS property.
11th Nov 2016, 7:12 AM
AVATAR
AVATAR - avatar
+ 4
bgcolor specifies document background color, background-color--background color of an element
17th Oct 2016, 3:03 PM
Suzie
Suzie - avatar
+ 1
bgcolor attribute from html background-color property from css
28th Nov 2016, 5:20 PM
MATREX MOON
MATREX MOON - avatar