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.
Keep reading. Do not forget to share or leave feedback.<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.
+John Bhatt