Nested Framesets - HTML

You have seen how to create rows and columns using framesets. However, what if you want a little of both? For example, consider the layout.

A frameset with a combination of rows and columns.

A frameset with a combination of rows and columns.
In such cases, you need to nest one frameset inside of another. For example, the following frameset code results in the layout :

To achieve the layout, a column-based frameset is nested inside the second row of the row-based frameset. In essence, the second row of the top frameset becomes its own frameset. You could conceivably nest other framesets within this layout, but using more than two or three frames tends to clutter the document and confuse the user.

Note: The _parent and _top values of the anchor tag’s target attribute were mentioned earlier in this chapter. Looking at the example in this section, you can see how those two values would each affect the target.

The _parent value causes the content to load within the frameset, that is the immediate parent of the current frame. For example, using _parent in a link within the content frame would cause the specified content to load in the area defined for the column-based frameset.

The _top value causes the content to load within the top-most frameset. For example, using _top in a link within the content frame would cause the specified content to load in the area defined for the row-based frameset, effectively taking up the entire user agent window


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

HTML Topics