what is image tag? how would you insert an image?
Answers
the <img> tag defines an image in an HTML page
Use the <img> tag to define an image in an HTML page.
<src> attribute sets the URL of an image.
<alt> attribute defines an alternate text for an image, especially when it cannot be displayed.
In order to link an image to another document, just use the tag <img> inside <a> tags.
In HTML the tag <img> has no end tag
Hi. The < img > tag is used to show an image in a html document. It is an open tag that means that it has no closing tag. Its 'src' attribute defines the path or url of the image to be displayed. The 'alt' attribute can be used to show some text when the image is not available. The 'height' and the 'width' attributes specify the height and the width of the image respectively. To use images as links, place the < img > tag inside the anchor < a > ... < /a > tags.
Example: To show an image whose location is 'C:/Flower.png' with a height of 500 and a width of 200, the following code will be used:
< img src="C:/Flowers.png" alt="Flowers" height="500" width="200" / >
Hope it helps!