Home HTML Filling Background in a page

Filling Background in a page

by John Bhatt
360 views
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 site uses Akismet to reduce spam. Learn how your comment data is processed.

Filling Background in a page

by John Bhatt time to read: 1 min
0