XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / frameset
(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
frameset
HTML 4.01 |
<frameset> ... </frameset>
Defines a group of frames or nested framesets. Frame-based documents use the element frameset instead of body. The DOCTYPE declaration should refer to the appropriate frameset DTD, as shown in the example below.
The element frameset has no content of its own, such as text or images. Instead, it defines and names frames or other framesets arranged in columns and rows. Each frame is marked by the element frame within the frameset element. A frameset document has a normal HTML head (head).
Notes
Not available in HTML 5. The elements frameset, frame and noframes are not part of HTML 5.
Start/end tag
Required/required
Attributes
Core, onload, onunload
border="Zahl"Not standards-compliant. Defines the border thickness in pixels between all frames in a frameset if the attribute
frameborderhas the value1(borders are displayed).bordercolor="#rrggbb"or"Farbname"Not standards-compliant. Sets a color for the borders between frames. Mozilla and Opera do not support
bordercolor.cols="Liste mit Breitenangaben" (Zahl, Prozentwert oder *)Sets the number and width of columns, or vertical frames, in a frameset. The number of values in the list determines the number of columns. Widths can be specified in pixels, percentages or relative values (*). An asterisk (*) makes the width depend on the available space. Different kinds of values can be combined; see the example.
rows="Liste mit Höhennangaben" (Zahl, Prozentwert oder *)Sets the number and height of rows, or horizontal frames, in a frameset. The number of values in the list determines the number of rows. Heights can be specified in pixels, percentages or relative values (*). An asterisk (*) makes the height depend on the available space. Different kinds of values can be combined; see the example.
Example
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/HTML4.01/frameset.dtd">
<html>
<head>
<title>Einfaches Frame-Dokument</title>
</head>
<frameset cols="200,*">
<frame src="links.html">
<frame src="rechts.html">
</frameset>
<noframes>
<body>
<p>Ihr Browser unterstützt keine Frames.</p>
</body>
</noframes>
</html>
|
Copyright © 2010 O’Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from "HTML & XHTML ─ kurz & gut" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de