HTML <frame> name Attribute
Example
A named frame:
<frameset cols="50%,50%">
<frame src="frame_a.htm" name="frame_a">
<frame src="frame_b.htm">
</frameset>
Try it yourself »
Definition and Usage
The <frame> tag is not supported in HTML5.
The name attribute specifies the name of a <frame> element.
The name attribute is used to reference the element in a JavaScript, or to act as a target for a link.
Browser Support
Attribute | |||||
---|---|---|---|---|---|
name | Yes | Yes | Yes | Yes | Yes |
Differences Between HTML and XHTML
In XHTML, the name attribute of the <frame> tag is deprecated, and will be removed. Use the id attribute instead.
Syntax
<frame name="text">
Attribute Values
Value | Description |
---|---|
text | Specifies the name of the frame |
HTML <frame> tag