Updates
  • Starting New Weekday Batch for Full Stack Java Development on 15 September 2025 @ 02:00 PM to 04:00 PM
  • Starting New Weekday Batch for MERN Stack Development on 29 September 2025 @ 04:00 PM to 06:00 PM
Join Course

HTML Image

• The image tag in HTML is represented by <img> and is used to display images on a webpage.
• The image tag requires the src attribute, which specifies the source URL or file path of the image.
• Additionally, the alt attribute is used to provide alternative text that describes the image.
• The alt text is displayed when the image cannot be loaded or for accessibility purposes.
• The image tag is a self-closing tag, meaning it does not require a closing tag.

            
<!DOCTYPE html>
<html>
<head>
    <title>Image</title>
</head>
<body>
    <h1>Welcome to JTC</h1>
    <div>
        <img src="Learn_HTML.jpg" alt="Learning Programming">
    </div>
</body>
</html>
        


Src- Used to specify the source or location of an image.
Alt- Used to provide alternative text for an image when it cannot be displayed.