Use the content of the tag to provide information to users of browsers that do not support inline frames. Compliant browsers will ignore these contents whereas all other browsers ignore the tag and therefore display its contents as if it were regular body content. For instance, use the content to explain to non-Internet Explorer users what they are missing: ...other document content
Your browser does not support inline frames. To view this document correctly, you'll need a copy of Internet Explorer.
...subsequent document content
In this example, we let the user know that they were accessing an unsupported feature, and provided a link to the missing content.
12.6.1.1 The align attribute
Like the align attribute for the
tag, this inline frame attribute lets you control where the frame gets placed inline with the adjacent text or moved to the edge of the document, allowing text to flow around the frame.
For inline alignment, use top, middle, or bottom as the value of this attribute. The frame will be aligned with the top, middle, or bottom of the adjacent text, respectively.
To allow text to flow around the inline frame, use the left or right values for this attribute. The frame will be moved to the left or right edge of the text flow, respectively, and the remaining content of the document will be flowed around the frame. A value of center places the inline frame in the middle of the display, with text flowing above and below.
12.6.1.2 The height and width attributes Currently, Internet Explorer puts the contents of an inline frame into a predefined, 150-pixel-tall, 300-pixel-wide box. Use the height and width attributes with values as the number of pixels to change those dimensions.
12.6.2 Using Inline Frames
Although you probably will shy away from them for most of your web pages (at least until most browsers become HTML 4.0-compliant), inline frames can be useful, particularly for providing information related to the current document being viewed, similar to the sidebar articles you'd find in a conventional printed publication.
Except for their location within conventional document content, inline frames are treated exactly like regular frames. You can load other documents into the inline frame using its name (see following section) and link to other documents from within the inline frame.
As we discussed in the tag description section, you can label a frame by adding the name attribute to its tag. The new HTML 4.0 id attribute provides the same unique labeling.
Once named or identified, the frame may become the destination display window for a hypertext-linked document selected within a document displayed in some other frame. You accomplish this redirection by adding the special target attribute to the anchor that references the document.
Targeted hypertext links makes it easy to create effective navigational tools. A simple table of contents document, for example, might redirect documents into a separate window: Table of Contents
The first time the user selects one of the table of contents hypertext links, the browser will open a new window, label it "view_window," and display the desired document's contents inside it. If the user selects another link from the example table of contents and the "view_window" is still open, the browser will again load the selected document into that window, replacing the previous document.
Throughout the whole process, the window containing the table of contents is accessible to the user.
By clicking on a link in one window, the user causes the contents of the other window to change.
Rather than open an entirely new browser window, a more common use of target is to direct hyperlink contents to one or more frames in a