home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

Book HomeHTML & XHTML: The Definitive GuideSearch this book

11.4. Frame Contents

A frame document contains no displayable content, except perhaps a message for non-frame-enabled browsers. Instead, <frame> tags inside the one or more <frameset> tags (which encapsulate the contents of a frame document) provide URL references to the individual documents that are occupying each frame. Section 11.5, "The <noframes> Tag"

11.4.1. The <frame> Tag

The <frame> tag appears only within a <frameset>. Use it to set, via its associated src attribute, the URL of the document content that initially gets displayed inside the respective frame.

<frame>

Function:

Define a single frame in a <frameset>

Attributes:

BORDERCOLOR

NAME

CLASS

NORESIZE

FRAMEBORDER

SCROLLING

ID

SRC

LONGDESC

STYLE

MARGINHEIGHT

TITLE

MARGINWIDTH

End tag:

</frame>; rarely included in HTML

Contains:

Nothing

Used in:

frameset_content

Frames are placed into a frameset column by column, from left to right, and then row by row, from top to bottom, so the sequence and number of <frame> tags inside the <frameset> tag are important.

The browser displays empty frames for <frame> tags that do not have a src attribute. It also displays empty frames if the <frameset> tag calls for more frames than the corresponding <frame> tags define. Such orphans remain empty; you cannot put content into them later, even if they have a target "name" for display redirection. Section 11.4.1.2, "The name attribute"



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.











??????????????@Mail.ru