Latest web development tutorials

HTML frame name attribute

HTML frame Tag Reference HTML <frame> tag

Examples

A named frame:

<frameset cols="50%,50%">
<frame src="frame_a.htm" name="frame_a">
<frame src="frame_b.htm">
</frameset>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support name attribute.


Definition and Usage

HTML5 does not support the <frame> tag.

name attribute specifies the <frame> element's name.

name attribute for the target reference elements in JavaScript, or as a link.


Differences between HTML and XHTML

In XHTML, name attribute <frame> tag is obsolete and will be removed. Please use the id attribute instead.


grammar

<frame name="text">

Property Value

描述
text 规定框架的名称。


HTML frame Tag Reference HTML <frame> tag