0

How to add background color onto your website?

It's simple use bgcolor attribute in body tag. <body bgcolor ="red"> .After using this you will see that your background color get turned into red instead of white.

16th Jan 2017, 11:49 AM
Anurag Choudhary
Anurag Choudhary - avatar
4 odpowiedzi
+ 2
Very bad idea in fact: "The <body> bgcolor attribute is not supported in HTML5. Use CSS instead" ( http://www.w3schools.com/tags/att_body_bgcolor.asp ) They give an inlining style example ( '<body style="background-color:#E6E6FA">' ), but you'll be advice to reserve inlined styles to draft step only, and keep css appart from html as soon as possible ;)
16th Jan 2017, 12:23 PM
visph
visph - avatar
+ 1
Yes...You have an answer by yourself now
16th Jan 2017, 11:59 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 1
Thank you visph as I am new on Solo learn and also I am only 13 years old and studying in class 8th but I know infact that we can use CSS and many others in html.
16th Jan 2017, 12:34 PM
Anurag Choudhary
Anurag Choudhary - avatar
0
u work with bgcolor
18th Jan 2017, 1:12 AM
chris negati
chris negati - avatar