+ 1

how to set the background of the web page

10th Oct 2016, 1:46 PM
POTHURAJU HARISH KRISHNA
POTHURAJU HARISH KRISHNA - avatar
3 Respostas
+ 2
Using html add the bgcolor attribute to the body tag: <body bgcolor="#000099">
10th Oct 2016, 9:45 PM
Allison Wykle
Allison Wykle - avatar
+ 1
Yeah don't use bgcolor, ever! Use CSS instead. Arav's answer works, but the clean way to do it is like this: <html> <head> <style> body{ background-color: rgb(255,0,0); } </style> </head> <body> </body> </html> Your background will now be red.
10th Oct 2016, 5:29 PM
Baraa AB
Baraa AB - avatar
+ 1
for background image <style> background:url ("http://example.jpg"); </style>
10th Oct 2016, 7:03 PM
Li Kyüi Ng'bawi Awm
Li Kyüi Ng'bawi Awm - avatar