Latest web development tutorials

HTML iframe longdesc attribute

HTML iframe tag Reference Manual HTML <iframe> tag

Examples

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

<iframe src="http://www.w3cschool.cc/" width="200" height="200" longdesc="w3s.txt">
</iframe>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Almost all of the major browsers do not support the longdesc attribute.


Definition and Usage

HTML5 does not support the <iframe> longdesc attribute.

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

Note: Because of browser support for the longdesc attribute is very poor, there is no need to use this property.For for a <iframe> to provide a long description (if necessary), simply create a link to a page description (the link is visible to anyone).


grammar

<iframe longdesc="URL">

Property Value

描述
URL 规定描述 <iframe> 内容的页面的 URL。

可能的值:

  • 绝对 URL - 指向另一个网站(比如 longdesc="http://www.example.com/description.txt")
  • 相对 URL - 指向网站内的一个文件(比如 longdesc="description.txt")


HTML iframe tag Reference Manual HTML <iframe> tag