-->

HTML page to insert image with attributes

we can apply different attributes to inserted image. Let's be clear with following example.
-------------------------------------------------------------------------------------------------
<html> <!--called root tag-->
<head> <!--it is used for meta tags-->
<title><!-- it is used for title of page-->
inserting image
</title>
</head>
<body><!--it is a container-->
<img src="picture\picture1.jpg" width="400px" height="400px" alt="building">
<!--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-->
</body>
</html>



---------------------------------------------------------------
note:-
Make sure that we have picture in same folder as html is.

No comments:

Post a Comment