XFrames was an XML format draft for embedding HTML pages into one page which handles the layout without the problems of HTML frames. The frames technique was especially popular for navigation bars. While HTML frames are still supported for legacy websites, todayâÂÂs websites assemble pages by other means.
Traditional HTML frames, introduced with HTML 4.0, were useful for their ability to combine several distinct web pages into a single view. However, several problems arose from the implementation and as such, frames were removed from the W3C XHTML 1.1 standard. XFrames was supposed to address some of the following problems existent in HTML frames:
XFrames overcomes the bookmarking problem by encoding the population of the frames into the URI, thus making it possible to bookmark/add a favorite of a page successfully.
Similar to other markup languages, XFrames supported a number of elements and respective attributes. The following is a simple demonstration for the proposed implementation of a frames web page:
The <code><frames></code> element acts as the containing element of the collection of frames. This collection is what is being referred to as the 'frameset' of a web page. Similarly to XHTML and HTML markup, the <code><head></code> element contains metadata primarily used for search optimization and document description. The contained <code><style></code> element is used to include any content and layout styling. <code><group></code> groups a single or several frame elements together and can be styled accordingly. If no group style is specified, the <code>compose</code> attribute should be used to specify how the grouped frame elements are to be composed. Lastly, the <code><frame></code> element acts as the placeholder for the content of a web page specified by URL through the <code>source</code> attribute.