write HTML code to set the image "pen.jpg" stored in "my picture" folder in c:/ as the background of your webpage
Answers
Answered by
33
<html>
<head>
<title>Setting Image</title>
</head>
<body background ="pen.jpg">
<B>THIS IS AN HTML DOC </B>
</body>
<html>
<head>
<title>Setting Image</title>
</head>
<body background ="pen.jpg">
<B>THIS IS AN HTML DOC </B>
</body>
<html>
Answered by
29
<html>
<head>
<style>
body
{
background-image: url("c:\pen.jpg");
background-repeat:no-repeat;
}
</style>
</head>
<body>
<p>This is the background image</p>
</body>
</html>
<!-- Hope this helps!>
<head>
<style>
body
{
background-image: url("c:\pen.jpg");
background-repeat:no-repeat;
}
</style>
</head>
<body>
<p>This is the background image</p>
</body>
</html>
<!-- Hope this helps!>
Similar questions