W3Schools.com

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 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
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE