html image tag

HTML image tag is used to show images on a web page.

Use src and alt as the required attribute of HTML <img> tag to specify the images.



HTML image

List of HTML image tag attributes

Sr. No. image attributes Description
1 src Used to get the url location of the image from where we get the image.
2 alt Used to show the alternative text when the server not able to find the image in the given location.
3 width Used to define the width of the image.
4 height Used to define the height of the image.

Resources and References

1. W3C Specification.
2. HTML living standard
3. W3C project using Github

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.