No announcement


The image <img> tag is used to insert images into an HTML document. It is a self-closing tag and requires the src attribute to specify the source (URL or file path) of the image.



<!DOCTYPE html>
    <meta charset="UTF-8">
    <title>My Webpage</title>
    <img src="path/to/image.jpg" alt="Description of the image">

Description of the image

The alt attribute provides alternative text for the image, which is displayed if the image fails to load or for accessibility purposes. Other attributes such as width, height, and title can be used to control the image size and provide additional information.