The web is not just about text, its multi-media and HTML’s multimedia features allow you to include images, audio clips, video clips, and other multimedia element in the web pages.
The tag is used to insert images in HTML documents. It is an empty element and contains attributes only. The syntax of tag can be given with:
Src Attribute of images:
Every image has a src attribute (src stands for source). The src attribute tells the browser where to find the image you want to display. The URL of the image provided as the value of src attribute points to the location where the image is stored.
Alt Attribute of images:
The alt attribute is the alternative description for an image, if the image cannot be displayed. The value of the alt attribute is an author-defined text.
Setting for height and Width:
The width and height attributes are used to specify the height and width of an image.
The attribute values are specified in pixels by default.