Frames


Frames create new "panels" in the web browser window that are used to display content from different source documents.

<frame>

Usage

Defines a frame.

Start/End Tag

Required/IllegalSee note for XHTML 1.0 requirements.

Attributes

name="..."The name of a frame.

 

src="/books/2/631/1/html/2/..."The source to be displayed in a frame.

 

frameborder="..."Toggles the border between frames (0, 1).

 

marginwidth="..."Sets the space between the frame border and content.

 

marginheight="..."Sets the space between the frame border and content.

 

noresizeDisables sizing.

 

scrolling="..."Determines scrollbar presence (auto, yes, no).

Empty

Yes.

Notes

In XHTML 1.0, this tag should take the XML form of <frame /> to ensure compatibility with older browsers. Margins should normally be set using Cascading Style Sheets.


<frameset>...</frameset>

Usage

Defines the layout of frames within a window.

Start/End Tag

Required/Required.

Attributes

rows="..."The number of rows.

 

cols="..."The number of columns.

 

onload="..."The intrinsic event triggered when the document loads.

 

onunload="..."The intrinsic event triggered when the document unloads.

Empty

No.

Notes

Framesets can be nested.


<iframe>...</iframe>

Usage

Creates an inline frame.

Start/End Tag

Required/Required.

Attributes

name="..."The name of the frame.

 

src="/books/2/631/1/html/2/..."The source to be displayed in a frame.

 

frameborder="..."Toggles the border between frames (0, 1).

 

marginwidth="..."Sets the space between the frame border and content.

 

marginheight="..."Sets the space between the frame border and content.

 

scrolling="..."Determines scrollbar presence (auto, yes, no).

 

height="..."Height.

 

width="..."Width.

Deprecated

align="..."Controls alignment (left, center, right, justify).

Empty

No.


<noframes>...</noframes>

Usage

Alternative content when frames are not supported.

Start/End Tag

Required/Required.

Attributes

None.

Empty

No.





Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day
Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day (5th Edition)
ISBN: 0672328860
EAN: 2147483647
Year: 2007
Pages: 305

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net