HTML page to insert a picture using img tag

Let's understand this with following tag.
<html> <!--called root tag-->
<head> <!--it is used for meta tags-->
<title><!-- it is used for title of page-->
inserting image
<body><!--it is a container-->
<img src="glass.jpg">
<!--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-->

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

No comments:

Post a Comment