HTML <frame> srcAttributes

HTML frame 标签参考手册HTML <frame> Tag

Examples

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

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

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the src attribute.


Definition and Usage

HTML5 does not support the <frame> tag.

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


Syntax

<frame src="URL.html">

Attribute Values

Value Description
URL Specifies the address of the document to be displayed in the frame.

Possible values:

  • Absolute URL - Points to another website (e.g. src="http://www.example.com/default.htm")
  • Relative URL - Points to a file within a website (e.g. src="default.htm.html")


HTML frame 标签参考手册HTML <frame> Tag Other Extensions