About Lesson
HTML <img> tag is used to add image inside webpage/website. Nowadays website does not directly add images to a web page, as the images are linked to web pages by using the <img> tag which holds space for the image.
Syntax:
<img src=”” alt=”” width=”” height=””>
Attributes:
The <img> tag has following attributes.
src: It is used to specify the path to the image.
alt: It is useful as it informs the user about what the image means and also due to any network issue if the image cannot be displayed then this alternate text will be displayed.
height: It is used to specify the height of the image.
width: It is used to specify the width of the image.
Exercise Files
No Attachment Found
Join the conversation