Posted The: 02/09/2008 At: 10:12
Last Edited: 30/09/2008 At: 9:15
Contents:
The Frameset Element is used to define a set of frames in a page. The frameset element replaces the body element, pages which are using frames should use the frameset doctype.
Better results can often be achieved using HTML div elements to devide a page into several sections, CSS can be used to give the elements a scroll-bar. Using div elements allow for better indexing in search engines, and are more user-friendly then frames.
Standard Attributes.
| Attribute: | Value: | Description: | DTD: |
| Attrs | Other Attributes | Common, I18n, Event | STF |
| rows | Length Units | List of Lengths | F |
| cols | Length Units | List of Lengths | F |
| onload | Script | All the frames have been loaded | F |
| unonload | Script | All the frames have been unloaded | F |
DTD. Defines which document type the attribute is allowed. S=Strict, T=Transitional, F=Frameset.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<head>
<title>My first Frameset</title>
</head>
<frameset cols="25%,75%">
<frame src="First-Page.html">
<frame src="Second-Page.html">
</frameset>
</html>Extra examples dealing with Frames.
Because frames are so rarely used, layout examples will be included here, or posted as comments.
Comments: [0]
© Brugbart Webdesign