Easy Tutorial
❮ Att Img Vspace Canvas Globalalpha ❯

HTML <img> longdesc Attribute

HTML <img> Tag

Example

Using the longdesc attribute to point to a page with a long description of the image:

<img decoding="async" loading="lazy" src="logo.png" alt="tutorialpro.org" width="336" height="69" longdesc="w3s.txt">

Browser Support

Almost all major browsers do not support the longdesc attribute.


Definition and Usage

The longdesc attribute specifies the URL of a page that contains a long description of the image.

Tip: Due to the poor browser support for the longdesc attribute, it is not necessary to use this attribute. If a long description for an image is needed, simply create a link to the description page (which is visible to everyone).


Syntax

Attribute Values

Value Description
URL The URL pointing to the image description page. Possible values: Absolute URL - points to another website (e.g., longdesc="http://www.example.com/description.txt")<br>Relative URL - points to a file within the website (e.g., longdesc="description.txt")
❮ Att Img Vspace Canvas Globalalpha ❯