Latest web development tutorials

HTML frame src attribute

HTML frame Tag Reference HTML <frame> tag

Examples

src attribute specifies the document in the <frame> is displayed here:

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

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the src attribute.


Definition and Usage

HTML5 does not support the <frame> tag.

Src attribute specifies the document's URL is displayed in the frame.


grammar

<frame src="URL">

Property Value

描述
URL 规定要在框架中显示的文档的地址。

可能的值:

  • 绝对 URL - 指向另一个网站(比如 src="http://www.example.com/default.htm")
  • 相对 URL - 指向网站内的一个文件(比如 src="default.htm")


HTML frame Tag Reference HTML <frame> tag