XHTML Frames


Frames create new "panels" in the Web browser window that are used to display content from different source documents; frames allow you to build a Web page composed of several other web pages. Frames are not supported in XHTML 1.1 but can still be used via the XHTML 1.0 Frameset DTD and XHTML 1.0 Transitional DTD (iframes).

<frame />

Usage

Defines a frame.

Start/End Tag

Required/Illegal.

Attributes

core.

name="name" The name of a frame.

src="sourceurl" The source to be displayed in a frame.

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

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

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

noresize="noresize" Disables sizing.

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

longdesc="descurl" A URL to a long description of the frame; for browsers without frames.

Empty

Yes.

Notes

XHTML 1.0 Frameset DTD.


<frameset></frameset>

Usage

Defines the layout of frames within a window.

Start/End Tag

Required/Required.

Attributes

core.

rows="numrows" The number and size/proportion of rows.

cols="numcols" The number and size/proportion of columns.

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

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


Empty

No.

Notes

XHTML 1.0 Frameset DTD. Framesets can be nested.


<iframe></iframe>

Usage

Creates an inline frame.

Start/End Tag

Required/Required.

Attributes

core.

name="name" The name of the frame.

src="sourceurl" The source to be displayed in a frame.

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

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

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

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

height="height" Height.

width="width" Width.

longdesc="descurl" A URL to a long description of the frame; for browsers without frames.

Empty

No.

Notes

XHTML 1.0 Transitional DTD.


<noframes></noframes>

Usage

Alternative content when frames are not supported.

Start/End Tag

Required/Required.

Attributes

core, i18n, events.

Empty

No.

Notes

XHTML 1.0 Frameset DTD.





SAMS Teach Yourself HTML and CSS in 24 Hours
Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)
ISBN: 0672328410
EAN: 2147483647
Year: 2005
Pages: 345

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