+ 2

About "bgcolor" attribute

We can use bgcolor attribute in <table> , <tr> , <td> , <body> tag. But why we can't use it in <div> , <span> , <h1> tag ?

11th Mar 2019, 1:06 PM
Insufficient Storage
Insufficient Storage - avatar
7 ответов
+ 11
Bgcolor is not supported in html5. Use background-color instead.
11th Mar 2019, 1:42 PM
Mitali
Mitali - avatar
+ 7
Use CSS Instead of this obsolete attribute
13th Mar 2019, 8:03 AM
Вап
+ 5
You can use as inline CSS. STYLE="BACKGROUND-COLOR: blue;"
12th Mar 2019, 3:37 PM
Gaurav bhojwani
Gaurav bhojwani - avatar
+ 4
13th Mar 2019, 7:51 AM
Gaurav bhojwani
Gaurav bhojwani - avatar
+ 2
thanks Mitali di
11th Mar 2019, 1:42 PM
Insufficient Storage
Insufficient Storage - avatar
+ 2
can i use background-color as an attribute or in style attribute ?
11th Mar 2019, 1:43 PM
Insufficient Storage
Insufficient Storage - avatar
+ 1
thanks Gaurav bhojwani
13th Mar 2019, 5:02 AM
Insufficient Storage
Insufficient Storage - avatar