- 1
<div style="background-color: green"> or <div bgcolor="green">?
I donˋt fully grasp the difference between background-color and bgcolor. When to use what?
2 odpowiedzi
+ 4
bgcolor is the old mode to make background color for divs and modern browsers doesn’t have support for it anymore. background-color is the new css way of setting a background color.
You should use background-color.
+ 1
Thanks!