Computer Science, asked by sudhanshusingh3, 1 year ago

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 SnehalD
33
<html>
<head>
<title>Setting Image</title>
</head>
<body background ="pen.jpg">
<B>THIS IS AN HTML DOC </B>
</body>
<html>
Answered by siddhartharao77
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!>
Similar questions