In html to display an image on a web page we are using the img tag.
<img> tag is an empty tag, that means it has only an opening tag and attributes
for additional information about the image.
Attributes of an image:
1. src :
Attribute "src" defines from where the image should be loaded.We can also mean it as the URL of an image.
2. alt :
Attribute "alt" provides the alternate information about the image.The alternate information will be showed if the image is not exist.
3. height :
Attribute "height" defines the display height size of the output image in pixels.
4. width :
Attribute "width" defines the output image's width interms of pixels.
Syntax :
<img src="url" alt="alternate name" height="px" width="px">
Example :
<img src="apple.JPEG" alt="apple" height="240" width="300">