HTML <iframe> longdesc Attribute

Example

Point to a page with a long description of the content of the <iframe>:

<iframe src=”https://dwfaisalabad.com” width=”500″ height=”300″ longdesc=”DW.txt”>
</iframe>

Try it Yourself »


Definition and Usage

The <iframe> longdesc attribute is not supported in HTML5.

The longdesc attribute specifies a URL to a page that contains a long description of the content of an <iframe>.

Note: The longdesc attribute is so poorly supported that it should not be used. To offer a long description of an <iframe> (if necessary), simply create a link (that is visible to anyone) to a page with the description.


Browser Support

Attribute
longdesc Not supported Not supported Not supported Not supported Not supported

Syntax

<iframe longdesc=”URL“>

Attribute Values

Value Description
URL A URL to a page that describes the content of an <iframe>.Possible values:

  • An absolute URL – points to another web site (like longdesc=”http://www.example.com/description.txt”)
  • A relative URL – points to a file within a web site (like longdesc=”description.txt”)

Post Author: Zahid Farid