Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML frame name Attribute

The HTML name attribute

HTML frame Tag Reference HTML Tag

Example

A named frame:

 

 

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the name attribute.


Definition and Usage

HTML5 does not support the tag.

The name attribute specifies the name of the element.

The name attribute is used to reference the element in JavaScript, or as a target of a link.


Differences between HTML and XHTML

In XHTML, the name attribute of the tag is deprecated and will be removed. Please use the id attribute instead.


Syntax

HTML tag