X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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 »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The src attribute is supported in all major browsers.


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.


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

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook