+ 5
how can I change the background color of my page?
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>
+ 7
at css file or <style> tag:
body{
background-color:red;
}
or change your desired color. can also apply hexa values,
+ 2
@hlxlzwrelxkryz where should i attact the css file? does it matter?
+ 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
+ 1
what is the external internal CSS file
+ 1
u can do it by adding style in body by:
<body style="background-color:colour name">
0
BY USING THIS CODE = BODYGG COLOR="RED"
0
also you can add background color
.
.
.
.
<body style="background-color:#667788">
0
with backgroung color tag as friends mentoined it
0
<body bgcolor=red>
0
<body bgcolor ="#0000FF">