<h1>Why bgcolor is not changing to blue???</h1> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

<h1>Why bgcolor is not changing to blue???</h1>

<!DOCTYPE html> <html> <head> <title>A BRIEF ABOUT SEO</title> </head> <body> <h1><span style="color:red">SEO</span> (search engine optimisation)</h1> <dav style="background-color:blue; color:red"><p><span style="color:yellow">SEO</span> or search engine optimisation is the process of optimising websites or any other web property according to the rules and guides of search engines like Google and Yahoo, To get the visibility in search engine and rank the websites to get large amount of free (organic) traffic</p></dav> </body> </html> Why paragraph background color is not changing to blue???๐Ÿ˜ข๐Ÿ˜ข๐Ÿ˜ข๐Ÿ˜ข๐Ÿ˜ข๐Ÿ˜ข

9th Jun 2019, 4:37 PM
Himanshu Rai
Himanshu Rai - avatar
5 Answers
+ 11
You seem to have written dav instead of div, so changing it to that should have the CSS work properly
9th Jun 2019, 4:40 PM
Faisal
Faisal - avatar
+ 5
Not dav, it is div!
9th Jun 2019, 5:30 PM
CodeFu
CodeFu - avatar
+ 2
Thanku faisal๐Ÿ˜๐Ÿ˜‚๐Ÿ‘
9th Jun 2019, 4:43 PM
Himanshu Rai
Himanshu Rai - avatar
+ 1
use one of the options 1. inline stylesheet 2. embedded stylesheet 3. cascading stylesheet
9th Jun 2019, 8:12 PM
sree harsha
sree harsha - avatar
0
I think css validation is not properly
9th Jun 2019, 8:07 PM
Mark Sikaundi
Mark Sikaundi - avatar