HTML and CSS Reference
In-Depth Information
<frameset cols="20%, 80%">
<frame src="controls.html" name="controls">
<frame src="display.html" name="body">
<noframes>
<p> Error: No frame support </p>
</noframes>
</frameset>
<!-- This example defines two rows, one of which is 10% of the screen,
and the other, whatever space is left. -->
<frameset rows="10%, *">
<frame src="adbanner.html" name="ad_frame">
<frame src="contents.html" name="content_frame">
</frameset>
Compatibility
HTML 4 and 4.01 (frameset DTD)
XHTML 1.0 (frameset DTD)
Firefox 1+, Internet Explorer 3+,
Netscape 2+,
Opera 4+, Safari 1+
Notes
• The content model says that the <frameset> tag contains one or more <frame>
tags, which are used to indicate the framed contents. A <frameset> tag also might
contain a <noframes> tag, whose contents will be displayed by browsers that do
not support frames.
• HTML5 currently does include support for frames beyond the inline frame defined
by an <iframe> tag.
• The <frameset> tag replaces the <body> tag in a framing document, as shown
here:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> Frame Demo </title>
</head>
<frameset cols="*,50,*">
<frame src="column1.html" name="col1" />
<frame src="column2.html" name="col2" />
<frame src="column3.html" name="col3" />
<noframes>
<body>
<p> Please visit our <a href="noframes.html"> no frames </a> site. </p>
</body>
</noframes>
</frameset>
</html>
Search WWH ::




Custom Search