HTML | <iframe> name Attribute Last Updated : 06 May, 2025 Comments Improve Suggest changes 2 Likes Like Report 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: name: It specify the name for the Iframe element.UsageThe name attribute assigns a unique name to an element so it can be targeted or referenced (e.g., by links or scripts).In <iframe>, it allows other links to target that specific iframe using the target attribute.In forms, it helps identify form data when it's submitted to the server.Example: html <!DOCTYPE html> <html> <head> <style> body { text-align: center; } </style> </head> <body> <h1 style="color:green"> GeeksforGeeks </h1> <h2> HTML <Iframe>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:Google Chrome 1 and aboveEdge 12 and aboveInternet ExplorerFirefoxApple SafariOpera Create Quiz Comment M manaschhabra2 Follow 2 Improve M manaschhabra2 Follow 2 Improve Article Tags : Web Technologies HTML HTML-Attributes Explore HTML BasicsHTML Introduction4 min readHTML Editors4 min readHTML Basics7 min readStructure & ElementsHTML Elements4 min readHTML Attributes7 min readHTML Headings3 min readHTML Paragraphs3 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists3 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks2 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables10 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms5 min readHTML5 Semantics5 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List15+ min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like