Globale linker
Book 1
- Chapter 1
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 10
- Chapter 11
- Chapter 12
- Chapter 13
- Chapter 14
- Chapter 15
- Chapter 16/17
- Chapter 18/19
- Chapter 20
- Chapter 21
- Chapter 22/23
Book 2
Ch.13 HTML Frames
Frames allow you to present more than one HTML file on screen at one time, in regions of the screen whose size and position you have defined.
Frames are an extension of the HTML 3.2 standard introduced by the Netscape release of the Navigator 2.0 browser, and expanded by the Internet Explorer 3.0 browser, and are now a part of HTML 4.0.
Elements that users should always see, such as navigation links, copyright notices and title graphic, can be placed in static individual frames. As users navigate the site, the static frame's content will remain fixed, even though the contents of the adjoining frames may change.
The advantage is that static and dynamic information can be combined.
The <frameset> tag is a container tag that allows you to define regions in your browser window and assign separate files to each region. It requires an attribute of either «cols» or «rows» that designates the number and size of columns in a browser window.
The <frameset> tag will create frames only if it is placed correctly in the document.
- The opening <frameset> tag must follow the closing<head> tag and precede the opening <body> tag. If you do not plan to use alternate text for browsers incapable of rendering frames, you do not need the <body> tag.
- The <frameset> tag must contain either the «rows» or the «cols» attribute. You cannot specify both «rows» and«cols» in the same <frameset> tag.
«Cols» or «rows» attributes can be specified in two ways, by percentage (relative sizing) or by pixels(absolute sizing).
The <frame> tag defines the content that will appear in each frame. It is enclosed within the <frameset> tag. The «src» attribute specifies which file will appear in the frame.
You can target a frame by using the «target» attribute of the <a> tag. For example: <a href="page2.html" target="main">Clickable text</a>
You can target a frame for all links in a document by using the <base> tag. The <base> tag is placed between the <head> tags and require the attribute «target». For example: <base target="main">
Browsers that do not support frames are still in use. You should inform users of these browsers that they cannot view your frames-based pages. The <noframes> tag makes this possible. The opening <noframes> tag is placed directly before the opening <body> tag. The closing <noframes> tag is placed directly after the closing <body> tag.
