HTML | <iframe> longdesc Attribute

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:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!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>

chevron_right


Output:

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



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



Improved By : shubham_singh

Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.