A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/html/html-iframe-name-attribute/ below:

HTML | <iframe> name Attribute

HTML | <iframe> name Attribute

Last Updated : 06 May, 2025

The HTML iframe name Attribute is used to specify a reference for an <Iframe> Element. The name attribute is also used as a reference to the elements in a Javascript. 

Syntax: 

<iframe name="name">

Attribute Values: 

Usage

Example: 

html
<!DOCTYPE html>
<html>

<head>
    <style>
        body {
            text-align: center;
        }
    </style>
</head>

<body>
    <h1 style="color:green">
      GeeksforGeeks
  </h1>
    <h2>
      HTML &lt;Iframe&gt;name Attribute
  </h2>
    <p>Content goes here</p>

    <iframe src="" 
            height="200" 
            width="200" 
            name="myGeeks">
    </iframe>
    <br>
    <a href="https://www.geeksforgeeks.org/community/" 
       target="myGeeks">
      GeeksforGeeks Community
  </a>

    <p>Content goes here</p>

</body>

</html>

Note: The content in the iframe isn’t showing because the website has blocked it for security reasons. You can try using a different link that allows embedding.

Supported Browsers: The browsers supported by HTML <iframe> name Attribute are listed below:



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4