Page 58 - TP_Play_V2.2_Class8
P. 58
<head>
<title>Inserting Image</title>
</head>
<body>
<b>Inserting image on the web page</b>
<img src="lily.jpg" width="200" height="200" style="float: right; border: 2px
solid black;">
</body>
</html>
Image inserted with border
Ensure that an image which we want to insert on the web page should be saved at the same location
where we have saved our HTML file. If we want to insert an image from any other location, we need to
provide the complete path of the image to the SRC attribute. For example, if our image is saved in the
D: drive of computer then the path of the image will be D:\lily.jpg.
Factbot
Some of the image formats supported by HTML are Joint Photographic Experts Group (JPEG), Graphics
Interchange Format (GIF) and Portable Network Graphics (PNG).
Double Tap Century #Information Literacy
21 st
Skills
Write any three attributes of <IMG> tag.
56 Plus (Ver. 4.0)-VIII

