basics of website design banner photo

HTML

HTML 5

CSS 2.1

CSS 3

Reference



HTML <frame>, <frameset> and <noframes> Elements.

These three elements cover the use of frames within HTML documents. Frames are sub-windows within the main browser window which can each contain a separate web page instead of the usual display of one page per window.

Due to problems of accessibility and usability which they provoke, and because frames have been removed from the XHTML 1.1 and HTML 5 specifications, we recommend you don't use them.

<frame> Attributes

  • CORE ATTRIBUTES - class, id, title, style
  • name - a name for the frame.
  • longdesc - a URI which contains a link to a long description of the frame - this is mainly useful for non-visual browsers.
  • src - location of the frame - a URI.
  • frameborder - sets whether this frame has a seperator between itself and other frames - 1 = yes, 0 = no.
  • marginwidth - sets left and right margins.
  • marginheight - sets top and bottom margins.
  • scrolling - should the frame have scroll bars - possible values are: yes, no or auto.
  • noresize - tells the browser that the frame window is not resizeable.

<frameset> Attributes

  • CORE ATTRIBUTES - class, id, title, style
  • rows - sets how horizontal frames are laid out.
  • cols - sets how vertical frames are laid out.
  • onload - an event occurs when all the frames have been loaded.
  • onunload - an event occurs when all the frames are removed from the browser window.

HTML 4 Element List