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.
4 Antworten
+ 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 ;)
+ 1
Yes...You have an answer by yourself now
+ 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.
0
u work with bgcolor