src (HTML attribute)
attribute instructs the browser where on the server to look for the web
page that should be presented to the user in the current
frame. This may be a file in the same directory, a file
somewhere else on the same server or a file held on another
The example shows a file in the same directory as the
frameset that is calling it, but if the file was in a
directory that is one level higher than the referencing
frameset, the syntax would be:
<frame src="../header.html" frameborder="1" name="nav" title="Navigation window"/>
equates to ‘move up one directory in the hierarchy’.
You can also reference a file relative to the web site’s root (anything after the domain name):
<frame src="/header.html" frameborder="1" name="nav" title="Navigation window"/>
"home.html" into their respective
<frameset rows="100,*"> <frame src="header.html" frameborder="1" name="nav" title="Navigation window"/> <frame src="home.html" frameborder="0" name="main" title="Main window"/> </frameset>
The location of the file, relative to the referencing document, relative to the server root or as a complete URI containing the http:// protocol, the server name and the path to the document on that server.
Every browser listed supports this attribute.
There are no comments yet.