Image Tag IN HTML
The <img> tag in HTML is essential for displaying images on web pages. It's a self-closing tag, so it doesn't need a separate closing tag. Its primary attribute is src, specifying the image file's URL. The alt attribute provides alternative text for accessibility and when the image can't load. Optionally, attributes like width and height can adjust the image's dimensions on the page. It allows for various file formats like JPEG, PNG, or GIF. The <img> tag enhances user experience, making web content visually engaging and informative, crucial for conveying information effectively in today's multimedia-driven online environment.
River
River
In this example,
i.The <img> tag embeds an image.
ii. The src attribute specifies the URL of the image.