Open In App

HTML | <iframe> longdesc Attribute

Last Updated : 14 Oct, 2019
Improve
Improve
Like Article
Like
Save
Share
Report

The HTML <iframe> longdesc Attribute is used to specify a page that contains the long description of the content of the iframe element.

Syntax:

<Iframe longdesc="URL"> 

Attribute Values:

  • URL: It contains single value i.e URL which specify the page which contains the long description of the content of the frame.
    1. An absolute URL: It points to another website.
    2. A relative URL: It points to a file within a website.

Example:




<!DOCTYPE html>
<html>
  
<head>
    <title>
        HTML iframe longdesc Attribute
    </title>
</head>
  
<body style="text-align:center;">
  
    <h1 style="color:green;">GeeksforGeeks</h1>
  
    <h4>HTML iframe longdesc Attribute</h4>
  
            srcdoc="<p>GeeksforGeeks</p>" id="GFG" 
            longdesc="gfg.txt" height="200" width="400" 
            name="myGeeks">
    </iframe>
  
</body>
  
</html>


Output:

Supported Browsers: The major browsers are not supported by HTML <iframe> longdesc Attribute.


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads