THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <frame> src Attribute

HTML frame Tag Reference HTML <frame> tag

Example

The src attribute specifies the location of the document to show in a <frame>:

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

Definition and Usage

The <frame> tag is not supported in HTML5.

The src attribute specifies the URL of the document to show in a frame.


Browser Support

Attribute
src Yes Yes Yes Yes Yes

Syntax

<frame src="URL">

Attribute Values

Value Description
URL The address to the document to show in the frame.

Possible values:

  • An absolute URL - points to another web site (like src="http://www.example.com/default.htm")
  • A relative URL - points to a file within a web site (like src="default.htm")

HTML frame Tag Reference HTML <frame> tag