HOME | basics of HTML | basics of PHP | neobux | onbux | readbud | templates |
| ||||||||||
Frames
With frames, several Web pages can be displayed in the same browser window. ATTENTION. Do not expect frames to be supported in future versions of HTML. Try-It-Yourself ExamplesVertical frameset Horizontal frameset (You can find more examples at the bottom of this page) HTML FramesWith frames, you can display more than one HTML document in the same browser window. Each HTML document is called a frame, and each frame is independent of the others. The disadvantages of using frames are:
The HTML frameset ElementThe frameset element holds one or more frame elements. Each frame element can hold a separate document. The frameset element states HOW MANY columns or rows there will be in the frameset, and HOW MUCH percentage/pixels of space will occupy each of them. The HTML frame ElementThe <frame> tag defines one particular window (frame) within a frameset. In the example below we have a frameset with two columns. The first column is set to 25% of the width of the browser window. The second column is set to 75% of the width of the browser window. The document "frame_a.htm" is put into the first column, and the document "frame_b.htm" is put into the second column:
Note: The frameset column size can also be set in pixels
(cols="200,500"), and one of the columns can be set to use the remaining space,
with an asterisk
(cols="25%,*"). Basic Notes - Useful TipsTip: If a frame has visible borders, the user can resize it by dragging the border. To prevent a user from doing this, you can add noresize="noresize" to the <frame> tag. Note: Add the <noframes> tag for browsers that do not support frames. Important: You cannot use the <body></body> tags together with the <frameset></frameset> tags! However, if you add a <noframes> tag containing some text for browsers that do not support frames, you will have to enclose the text in <body></body> tags! See how it is done in the first example below. More ExamplesHow to use the <noframes> tag
Nested framesets
Frameset with noresize="noresize"
Navigation frame Jump to a specified section
within a frame Jump to a specified
section with frame navigation HTML Frame Tags
|
||||||||||
© 2011 d4download.orgfree, All Rights Reserved.
Design created by diljith d4download.orgfree.com veriosn 2.0
HOME | basics of HTML | basics of PHP | neobux | onbux | readbud | templates |