+ 5

how can I change the background color of my page?

19th Dec 2016, 6:16 AM
medy
medy - avatar
11 Answers
+ 13
u can directly change it without css too. suppose u want to change background of whole page then use. <body bgcolor="blue"> ...... ..... .... </body>
19th Dec 2016, 6:30 AM
manish rawat
manish rawat - avatar
+ 7
at css file or <style> tag: body{ background-color:red; } or change your desired color. can also apply hexa values,
19th Dec 2016, 6:21 AM
Nahuel
Nahuel - avatar
+ 2
@hlxlzwrelxkryz where should i attact the css file? does it matter?
26th Dec 2016, 7:40 AM
Navneet Sharma
Navneet Sharma - avatar
+ 2
there are different way to change body background color 1.simplest in this way of HTML only <body bgcolor="your color name"> 2. otherwise using external CSS file method like <head> <link rel="stylesheet" href="style.css"> </head> while in CSS file style.css using below code body{ background-color:black; } or u can use inline CSS method
26th Dec 2016, 11:10 AM
Pratik Raj
Pratik Raj - avatar
+ 1
what is the external internal CSS file
17th Jan 2017, 12:14 PM
Sakti Shekhawat
Sakti Shekhawat - avatar
+ 1
u can do it by adding style in body by: <body style="background-color:colour name">
21st Jan 2017, 3:57 AM
Akshay Singh
Akshay Singh - avatar
0
BY USING THIS CODE = BODYGG COLOR="RED"
23rd Dec 2016, 12:23 PM
Aman PAL
Aman PAL - avatar
0
also you can add background color . . . . <body style="background-color:#667788">
5th Jan 2017, 9:12 AM
Oman Oman
Oman Oman - avatar
0
with backgroung color tag as friends mentoined it
8th Jan 2017, 1:00 PM
wisam sharefian
wisam sharefian - avatar
0
<body bgcolor=red>
11th Jan 2017, 4:54 PM
niraligajera
niraligajera - avatar
0
<body bgcolor ="#0000FF">
24th Jan 2017, 2:23 PM
Nick Spaas
Nick Spaas - avatar