SAMS Teach Yourself HTML and CSS in 24 Hours
Authors: Oliver D. Morrison M
Published year: 2005
Pages: 298-299/345
Buy this book on amazon.com >>

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 ( , 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 ( , 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.




XHTML Embedded Content

Also called inclusions , embedded content applies to images, imagemaps, Java applets, Flash animations, and other multimedia or programmed content that is placed in a Web page to provide additional functionality.

<area />

Usage

The <area> element is used to define links and anchors.

Start/End Tag

Required/Illegal.

Attributes

core , i18n , events .

shape=" value " Enables you to define client-side imagemaps using defined shapes ( default , rect , circle , poly ).

coords=" values " Sets the size of the shape using pixel or percentage lengths.

HRef=" linkurl " The URL of the linked resource.

nohref=" nohref " Indicates that the region has no action.

alt=" alttext " Displays alternative text.

onfocus =" eventcode " The event that occurs when the element receives focus.

onblur =" eventcode " The event that occurs when the element loses focus.

Empty

Yes.


<img />

Usage

Includes an image in the document.

Start/End Tag

Required/Illegal.

Attributes

core , i18n , events .

src=" sourceurl " The URL of the image.

alt=" alttext " Alternative text to display.

height=" height " The height of the image.

width=" width " The width of the image.

border=" border " Border width.

hspace=" horizontalspace " The horizontal space separating the image from other content.

vspace=" verticalspace " The vertical space separating the image from other content.

usemap=" mapurl " The URL to a client-side imagemap.

ismap="ismap" Identifies a server-side imagemap.

longdesc=" descurl " A URL to a long description of the image; for browsers that don't display images.

Empty

Yes.


<map> </map>

Usage

When used with the <area> element, creates a client-side imagemap.

Start/End Tag

Required/Required.

Attributes

core , i18n , events .

name =" name " The name of the imagemap to be created.

Empty

No.


<object> </object>

Usage

Includes an object.

Start/End Tag

Required/Required.

Attributes

core , i18n , events .

declare="declare" A flag that declares but doesn't create an object.

classid=" objecturl " The URL of the object's location.

codebase =" codebaseurl " The URL for resolving URLs specified by other attributes.

data=" dataurl " The URL to the object's data.

type=" datatype " The Internet content type for data.

codetype=" codetype " The Internet content type for the code.

standby=" waitmsg " Show message while loading.

height=" height " The height of the object.

width=" width " The width of the object.

border=" border " Displays the border around an object.

hspace=" horizontalspace " The space between the sides of the object and other page content.

vspace=" verticalspace " The space between the top and bottom of the object and other page content.

usemap=" mapurl " The URL to an imagemap.

shapes="shapes" Enables you to define areas to search for hyperlinks if the object is an image.

name=" nameurl " The URL to submit as part of a form.

Empty

No.


<param />

Usage

Initializes an object.

Start/End Tag

Required/Illegal.

Attributes

name=" name " Defines the parameter name.

value=" value " The value of the object parameter.

valuetype=" valuetype " Defines the value type ( data , ref , object ).

type=" contenttype " The Internet medium type.

Empty

Yes.



SAMS Teach Yourself HTML and CSS in 24 Hours
Authors: Oliver D. Morrison M
Published year: 2005
Pages: 298-299/345
Buy this book on amazon.com >>

Similar books on Amazon