Images other than texts HTML allows placing of stalk and animated images on the webpages Images with extension bmp, jpg, jpeg, gif, png can be displayed Image can be inserted on the web page using <img> this tag requires the name of the images file to be provided as an attribute.
I) Src attribute – This attribute specifies the location and name of the image file which is to be displayed on the web page.
e.g. <body>
<img src=”prava.jpeg”>
</body>
II) Border attribute – This attribute adds a border of specified thickness around the image
<img src=pravah.jpeg border=6>
It will display a border of 6 pixels
III) Width and Height attribute – Used to change the dimension of the img.
e.g. <body>
<img src=“parah.jpg” border=6 width=700 height=100>
IV) Alt attribute – This attribute is use to specify alternative text for the img. Two reason for using this attribution are the text is display whenever the img is missing and specify alternative name to img.
e.g. <img src=“Pravah1.jpeg” alt=PravahImg>
0 Comments