• 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.