HTML frame src Attribute

Definition and Usage

The src attribute specifies URL of the frames content.


<frame src="URL" />

Syntax Example

<frame src="frame_a.htm" />

Attribute Values

Value Description
URL Specifies URL of the page used in the frame (the frame content). Possible values:
  • An absolute URL - Is used to navigate to another web site (like longdesc="")
  • A relative URL - Is used to navigate within a site (like longdesc="frame_a.htm")

Browser Support

The attribute is supported in all major browsers.


<frameset cols="50%,50%">
<frame src="frame_a.htm" />
<frame src="frame_b.htm" />
Share this article :
Copyright © 2012. Best Online Tutorials | Source codes | Programming Languages - All Rights Reserved