W3Schools.com

HTML <iframe> longdesc Attribute

HTML iframe Tag Reference HTML <iframe> tag

Example

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

<iframe src="/default.asp" width="200" height="200" longdesc="w3s.txt">
  <p>Your browser does not support iframes.</p>
</iframe>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The longdesc attribute is not supported by any of the major browsers.


Definition and Usage

The longdesc attribute specifies an 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.


Syntax

<iframe longdesc="URL">

Attribute Values

Value Description
URL An 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")


HTML iframe Tag Reference HTML <iframe> tag
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE