Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > HTML / DHTML

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 09-09-2013, 03:57 AM   #1
keepquiet
Registered User
 
Join Date: Jul 2013
Posts: 16
How to change background in HTML?

please tell me about how can i change background color of html page?
keepquiet is offline   Reply With Quote

Old 09-26-2013, 12:10 PM   #2
jordan_rap13
Registered User
 
Join Date: Sep 2013
Location: Kalamata, Greece
Posts: 55
with css:
body{background-color:#fff } //for white
or
body{background-color:#000 } //for black
jordan_rap13 is offline   Reply With Quote
Old 09-30-2013, 03:50 AM   #3
Andrewhudson040
Registered User
 
Join Date: Jul 2013
Posts: 16
Hi you can change the backgrounds in html follow the code
<!DOCTYPE html>
<html>
<body style="background-color:yellow;">
<h2 style="background-color:red;">This is a heading</h2>
<p style="background-color:green;">This is a paragraph.</p>
</body>
</html>
__________________
Get VPS Hosting, Dedicated Server, Web Hosting & Cloud Hosting Services from http://www.go4hosting.net
Andrewhudson040 is offline   Reply With Quote
Old 10-01-2013, 04:18 AM   #4
jtindia
Registered User
 
Join Date: Sep 2013
Posts: 351
you can also try this....<body bgcolor="teal">....
jtindia is offline   Reply With Quote
Old 10-09-2013, 03:33 AM   #5
amitsharma11
Registered User
 
Join Date: Sep 2013
Posts: 91
you can try this
<html>
<body bgcolor="#E6E6FA">
<h1>Hello world!</h1>
</body>
</html>
or you can visit:: w3schools.com/tags/att_body_bgcolor.asp
amitsharma11 is offline   Reply With Quote
Old 12-27-2013, 01:54 AM   #6
truongsinhnb
Registered User
 
Join Date: Dec 2012
Posts: 13
you can change the backgrounds in html follow the code
<!DOCTYPE html>
<html>
<body style="background-color:yellow;">
<h2 style="background-color:red;">This is a heading</h2>
<p style="background-color:green;">This is a paragraph.</p>
</body>
</html>
very good
truongsinhnb is offline   Reply With Quote
Old 01-31-2014, 09:05 AM   #7
soufianYH
Registered User
 
Join Date: Jan 2014
Posts: 48
Hi, you can also try this....<body bgcolor="teal">....
soufianYH is offline   Reply With Quote
Old 02-04-2014, 04:02 AM   #8
mtubuzz
Registered User
 
Join Date: Feb 2014
Location: Delhi, India
Posts: 16
You can use <body style:"background-color:red" > command. Any preferred color you like. Hexadecimal codes are available on internet.
__________________
www.mtubuzz.com
mtubuzz is offline   Reply With Quote
Old 02-04-2014, 04:10 AM   #9
anuverma1
Registered User
 
Join Date: Feb 2014
Posts: 591
You can add background as:-
<html>
<body style="background-color:red;"></body>
</html>
anuverma1 is offline   Reply With Quote
Old 03-25-2014, 11:12 PM   #10
simar
Registered User
 
Join Date: Mar 2014
Posts: 73
bg image

We can change the background the image set the path of image in the body.....
simar is offline   Reply With Quote
Old 03-30-2014, 02:21 PM   #11
mikhapop
Registered User
 
Join Date: Mar 2014
Posts: 21
to use any image as background for your website with css you can use
bode {
background: url(location-of-imags/image-name.jpg) center no-repeat;
}
__________________
Mega Business Solutions! Web Design company in Egypt | Web Design Egypt
mikhapop is offline   Reply With Quote
Old 03-30-2014, 11:50 PM   #12
simar
Registered User
 
Join Date: Mar 2014
Posts: 73
Background Color

We can change the background color with the help of setting of property of the background....................
simar is offline   Reply With Quote
Old 04-16-2014, 11:26 PM   #13
shubhamgautam
Registered User
 
Join Date: Jan 2014
Posts: 185
You can change it from bgcolor attribute or body{background-color:-----} from CSS file.
shubhamgautam is offline   Reply With Quote
Old 05-15-2014, 03:04 AM   #14
alligatortek001
Registered User
 
Join Date: Nov 2013
Posts: 94
With the background option on the style tag , you can easily change the back ground of the web pages.
alligatortek001 is offline   Reply With Quote
Old 05-22-2014, 05:13 PM   #15
dantefrizzoli
Registered User
 
Join Date: Apr 2014
Location: Las Vegas, NV
Posts: 274
If you want to strictly use HTML for the background color you can use:

<!DOCTYPE html>
<html>
<body bgcolor="#008ED0">
</body>
</html>
dantefrizzoli is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Frame background problem ncjbhd HTML / DHTML 27 05-18-2015 11:52 PM
HTML 5 and HTML 4 johnhedberg3 HTML / DHTML 3 06-16-2012 04:08 AM
Differences with HTML 4 and HTML 5 danielnelson HTML / DHTML 11 06-10-2012 09:21 PM
1.Basic distinguishing features of HTML 4 and HTML 5 rooseveltjobs HTML / DHTML 0 04-12-2012 10:00 PM
change html link based on combobox selection mjvndhsb Javascript 0 09-19-2011 12:53 AM


All times are GMT -7. The time now is 03:30 AM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.