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

HTML Reference Manual

HTML Tag Encyclopedia

HTML: <frame> src attribute

This article introduces the HTML frame src attribute that specifies the URL of the document to be displayed in the frame, with an online example demonstrating how to use the HTML frame src attribute, browser compatibility, syntax definition, and detailed information about its attribute values.

 HTML <frame> tag

Online Example

The src attribute specifies the location of the document to be displayed in the <frame>:

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

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the src attribute.

Definition and Usage

HTML5 The <frame> tag is not supported.

The src attribute specifies the URL of the document to be displayed in the frame.

Syntax

<frame src="URL">

Attribute value

ValueDescription
URLSpecifies the address of the document to be displayed in the frame.

Possible values:

  • Absolute URL - Points to another website (for example src="http://www.example.com/default.htm"

  • Relative URL - Points to a file within the website (for example src="default.htm")

 HTML <frame> tag