English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

Complete List of HTML Tags

HTML: <frame> name attribute

The 'name' attribute specifies the name of the <frame> element. The 'name' attribute is used to reference elements in JavaScript or as the target of links. HTML5 The <frame> tag is not supported.

 HTML <frame> tag

Online Example

Name the frame as frame_name:

<frameset cols="50%,50%">
  <frame src="frame_a.htm" name="frame_name">
  <frame src="frame_b.htm">
</frameset>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the name attribute.

Definition and Usage

HTML5 The <frame> tag is not supported.

The name attribute specifies the name of the <frame> element.

The name attribute is used to reference elements in JavaScript or as the target of links.

Differences between HTML and XHTML

In XHTML, it is not recommended to use the name attribute of the <frame> tag and it should be removed. Use the id attribute instead.

Syntax

<frame name="text">

Attribute Value

ValueDescription
textSpecifies the name of the frame.
 HTML <frame> tag