HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML <frame> name Attribute

HTML frame Tag Reference HTML <frame> tag

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 »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The name attribute is supported in all major browsers.


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.


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 Reference HTML <frame> tag

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE