HTML <frame> nameAttribute
Example
A named frame:
<frameset cols="50%,50%">
<frame src="frame_a.htm.html" name="frame_a">
<frame src="frame_b.htm.html">
</frameset>
<frame src="frame_a.htm.html" name="frame_a">
<frame src="frame_b.htm.html">
</frameset>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the name attribute.
Definition and Usage
HTML5 does not support the <frame> tag.
The name attribute specifies the name of the <frame> element.
The name attribute is used to reference an element in JavaScript, or as a target for links.
Differences Between HTML and XHTML
In XHTML, the name attribute of the <frame> tag is deprecated and will be removed. Please use the id attribute instead.
Syntax
<frame name="text">
Attribute Values
| Value | Description |
|---|---|
| text | Specifies the name of the frame. |
HTML <frame> Tag Other Extensions