+ 3

Which one should I use, Background or Background-color?

Working in it, I see a lot of time people using background and background-color, which one should I have to use from here and now? for a better order in the code? Thank you for the help.

11th Nov 2016, 2:42 AM
Villafuerte
Villafuerte - avatar
3 ответов
+ 3
background is the container of background-color, so you may use background to write less code in css but to make code more readable you should use background color
11th Nov 2016, 3:13 AM
Maurizio Urso
Maurizio Urso - avatar
+ 1
Thanks Mauricio Urso, this resolved my question, thanks again for your help
11th Nov 2016, 3:20 AM
Villafuerte
Villafuerte - avatar
0
<body bgcolor="purple"> easy code :)
14th Nov 2016, 4:01 PM
Aquarius
Aquarius - avatar