-->
Showing posts with label background image. Show all posts
Showing posts with label background image. Show all posts

HTML page to insert background picture

Let's understand this with the help of html code.
----------------------------------------------------------------------------------------------------------
<html> <!--called root tag-->
<head> <!--it is used for meta tags-->
<title><!-- it is used for title of page-->
inserting image
</title>
</head>
<body background="coffee.jpg"><!--it is a container-->
We inserted picture as background.
<!--img src is used to insert image-->
<!-- it has attributes width,height and alt-->
<!-- 'alt' is used if the picture could not be loaded/displayed-->
<!--we must make sure that the path(of image) is correct-->
<!--it repeats the picture-->
<!-- to avoid it we use css.We will learn in css unit-->
</body>
</html>

 -------------------------------------------------------------
note:
   Before we inserrt picture, the pciture must be in same folder as that html page is.