How to insert the Image in HTML?
We can insert the image in html by using <img> tag.
<img src=” ”>
src, T
he attributes specifies the URL (web address) of the image.
Here Three types of Images file formats:
1)JPG or JPEG ===> Normal image
2)PNG ===>No background color
3)GIF ===>Graphic Inter change file
<html>
<head>
<title>Header</title>
</head>
<body>
<img src="/home/yuvaraj/Pictures/sport_audi_grey_background_bicycling_94380_3840x2160.jpg"
width="350" height="300" hspace="12" vspace="12" border="3" style="border-color:red">
width="350" height="300" hspace="12" vspace="12" border="3" style="border-color:red">
<img src="/home/yuvaraj/Pictures/sport_audi_grey_background_bicycling_94380_3840x2160.png"
width="350" height="300">
width="350" height="300">
<img src="/home/yuvaraj/Pictures/sport_audi_grey_background_bicycling_94380_3840x2160.gif"
width="350" height="300">
width="350" height="300">
</body>
</html>
Increase the image size and width by using width attribute and height attribute.And border attribute is used for applying the border of the image.
hspace attribute is used to maintain the space between the image to image in the horizontal row.
vspace attribute is used for the maintenance space between image to image in the vertical column.
NOTE:
you have must an should give image path in img src tag.

Comments
Post a Comment