What us the tag used to add background color?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What us the tag used to add background color??

16th Oct 2018, 6:13 AM
Akash Nandhu
Akash Nandhu - avatar
2 Answers
+ 1
Background color was an attribute ("bgcolor") as Satnam mentioned, but has since been deprecated. https://www.w3schools.com/tags/att_body_bgcolor.asp Now, background color is a style property ("background-color"), also mentioned previously. https://www.w3schools.com/cssref/pr_background-color.asp However, tags represent elements, so technically speaking, there is no tag (element) specifically for background color.
16th Oct 2018, 10:05 AM
Janningā­
Janningā­ - avatar
0
with css prop "background-color"
16th Oct 2018, 6:28 AM
KrOW
KrOW - avatar