Horje

How to add HTML <iframe> name Attribute

An <iframe> that act as a target for a link:

Definition and Usage

The name attribute specifies a name for an iframe.

This name attribute can be used to reference the element in a JavaScript, or as the value of the target attribute of an <a> or <form> element, or the formtarget attribute of an <input> or <button> element.

Browser Support

Syntax

<iframe name="name">

Attribute Values

Value Description
name Specifies a name for the <iframe>
index.html
Example: HTML
<iframe src="https://horje.com/learn/683/what-is-html-iframe-tag" name="iframe_a">
<p>Your browser does not support iframes.</p>
</iframe>

Output should be:

How to add HTML <iframe> name Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin