Filter (Advanced Search)
Video

Video is not available... Embedded is previous playlist.

Details

The alt Attribute

The required alt attribute provides an alternate text for an image, if the user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).

The value of the alt attribute should describe the image:

Example

<img src="cat.jpg" alt="cat">


<!DOCTYPE html>
<html>
<head>
<title>Setting Alternate Text for Image</title>
</head>
<body>

<h2>Setting Alternate Text for Image</h2>

<h4>ਤਸਵੀਰ ਲਈ ਅਲਟਰਨੇਟ ਟੈਕਸਟ ਸੈੱਟ ਕਰਨਾ</h4>

<img src="/media/images/kitten.jpg" alt="kitten.jpg - This is alternate"><BR><BR>

<img src="/media/images/cat.jpg" alt="cat.jpg">


</body>
</html>


Output


Ad
Added to Favorite
Removed from Favorite