0
Can't get the background to change color with style tag
Hey trying to set up a sit for myself but I can't get the style tag to change the background color can anyone tell me the proper way to put the code in the style Tag
6 Answers
+ 3
Check this out:
https://www.w3schools.com/cssref/pr_background-color.asp
And if you mean inline style then style="background-color:black" should work.
<div style="background-color:black">STUFF</div>
+ 2
then wrap what's in that page I linked for you in style tag.
+ 1
This is the proper syntax to set the background colour with the style attribute.
Example (HTML):
<body style="background-color:red;">
+ 1
"Check this out:
https://www.w3schools.com/cssref/pr_background-color.asp
And if you mean inline style then style="background-color:black" should work."
That would work but I mean the style tag that goes I the head
+ 1
No problem.
0
I got it fixed thank you all for your help