Dear All,
This is to tell you that how to insert background color and image in a webpage.
For Filling Color as Background
We use bgcolor attribute with body tag. Here is an example showing that how to fill color.
<html>
<head>
<title>Webpage with Background Color
</title>
</head>
<body bgcolor="red">
This page will have Red color as its background.
</body>
</html>
For Inserting Image as Background
We use background attribute with body tag. Here is an example showing that how to insert image as background.

<html>
<head>
<title>Webpage with Background Color
</title>
</head>
<body background="Background.jpg">
This page will have an Image named Background.jpg as its background.
</body>
</html>

This page will have my photos as its background.

Keep reading. Do not forget to share or leave feedback.
+John Bhatt 

Leave a Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.