The alt attribute is used for displaying a text in place of an image whenever the image cannot be loaded due to any technical issue.
<!DOCTYPE html>
<html>
<body>
<h2>HTML Alt Example</h2>
<img src=”tulip.jpeg” alt=”Tulip Garden” />
</body>
</html>
Leave a Reply