Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HTML
<html>
<head>
<title>HTML 4.01 Tag Reference</title>
</head>

<body bgcolor="red" text="blue" background="C:\Users\tanuj_gyan\Pictures\Good Morning\9129_21167.jpg" bgcolor="red">
Hello
</body>
</html>

Whenever I am executing the above code the background image is covering the entire space and background color is not at all visible. Kindly help!
Posted
Updated 10-Jan-12 19:53pm
v2

You should forget all such attributes and use CSS only. Don't keep living in stone age.

CSS!
http://en.wikipedia.org/wiki/CSS[^],
http://www.w3.org/Style/CSS/[^].

—SA
 
Share this answer
 
Comments
puja11191 11-Jan-12 3:17am    
Hi thanks for your answer. I asked this question from educational point of view and not from application point of view!!!
Wonde Tadesse 11-Jan-12 17:56pm    
5+. Lol and welcome to 300K world.
Sergey Alexandrovich Kryukov 11-Jan-12 21:14pm    
Thank you, Wonde.
--SA
Hi,

you can use both stuffs using style sheet.

Please look into this
 
Share this answer
 
Comments
puja11191 11-Jan-12 3:17am    
Hi thanks for your answer. I asked this question from educational point of view and not from application point of view!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900