Xhtml Frames and Inline Frames

Frames are an HTML 4 standard and is used in XHTML using the frameset DTD. Frames control the navigation and layout of multiple web pages. Frames divide the window space into smaller segments and may lengthen the time to load all files. Frames hide your souce codes from view.

TagsAttributes

<Frameset> ..</Frameset>

Starts/Ends Frameset -holder for frame data; specifies the layout for frames
 

<Frame>...</Frame>

Defines the source files and attributes
  • Name
  • Src
  • Reserved Target Names:
    _blank, _self, _top, _parent
  • Width and Height
  • Scrolling - Yes, No, Noresize
  • Marginheight and Marginwidth
* All pages to open in a specific window when placed in the head
<base target="destination">

<noframes>..</noframes>

Frame Alternative
• Files displayed in a non-frame browser
 

<iframe>...</iframe>

Floating /I-Frames
  • Src - file name
  • Name
  • Width
  • Height
  • Align
  • Frameborder
Web Design with XHTML Part II
Prince George's Community College
Doris Cuffey, Instructor