HTML frame src Attribute

Definition and Usage

The src attribute specifies URL of the frames content.

Syntax

<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="http://www.windows7gallery.com/frame_a.htm")
  • 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.

Example

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