What is the difference between <bgcolor> and <background-color> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the difference between <bgcolor> and <background-color>

19th Aug 2019, 1:13 PM
Anistar
Anistar - avatar
2 Answers
+ 4
Both of them with the tag mean nothing. But without the tag, they are attributes. Suppose a <div> tag you can use bgcolor inside it to specify it's background color like : <div bgcolor = 'red'> </div> Though this is obsolete and I won't recommend using it background-color can be used in css like : div { background-color: red; } One is old, one is new but do the same thing
19th Aug 2019, 1:30 PM
RZK 022
RZK 022 - avatar
+ 2
Okay, thanks
19th Aug 2019, 1:35 PM
Anistar
Anistar - avatar