Easy Tutorial
❮ Att Link Media Av Event Loadeddata ❯

HTML <iframe> name Attribute

HTML <iframe> Tag

Example

An <iframe> as a link target:


Browser Support

All major browsers support the name attribute.


Definition and Usage

The name attribute specifies the name of an <iframe>.

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


Differences Between HTML 4.01 and HTML5

None.


Differences Between HTML 4.01 and XHTML

In XHTML, the name attribute is deprecated and will be removed. Use the id attribute instead.


Syntax

Attribute Values

Value Description
name Specifies the name of the <iframe>.

❮ Att Link Media Av Event Loadeddata ❯