XFrames was an
XML
Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing data. It defines a set of rules for encoding electronic document, documents in a format that is both human-readable and Machine-r ...
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.
Differences from HTML frames
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
Extensible HyperText Markup Language (XHTML) is part of the family of XML markup languages which mirrors or extends versions of the widely used HyperText Markup Language (HTML), the language in which Web pages are formulated.
While HTML, pr ...
1.1 standard. XFrames was supposed to address some of the following problems existent in HTML frames:
* a web browser's “back” button failing to work intuitively
* the failure to bookmark or favorite specific documents on the web page easily as well as the inability to send an individual a reference to a specific document or collection
* getting trapped in a frameset
* the production of different results at times when a web page containing frames is reloaded
* the "Page Up" and "Page Down" keys being difficult to use due to the pointer focus being on another frame within the page
* security vulnerabilities caused by the fact that a user has no way of knowing the original source of each framed document
* Since frames are not supported by all agents, and the necessary
content is not popularly implemented, agents that do not support frames (such as search engines) fail to render pages correctly and at the same time prevent any
search engine optimization
Search engine optimization (SEO) is the process of improving the quality and quantity of Web traffic, website traffic to a website or a web page from web search engine, search engines. SEO targets unpaid search traffic (usually referred to as ...
.
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.
XFrames implementation
Similar to other
markup languages
A markup language is a text-encoding system which specifies the structure and formatting of a document and potentially the relationships among its parts. Markup can control the display of a document or enrich its content to facilitate automated p ...
, XFrames supported a number of elements and respective attributes. The following is a simple demonstration for the proposed implementation of a frames web page:
Home Page
The
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
Extensible HyperText Markup Language (XHTML) is part of the family of XML markup languages which mirrors or extends versions of the widely used HyperText Markup Language (HTML), the language in which Web pages are formulated.
While HTML, pr ...
and
HTML
Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It defines the content and structure of web content. It is often assisted by technologies such as Cascading Style Sheets ( ...
markup, the
element contains metadata primarily used for search optimization and document description. The contained
element is used to include any content and layout styling.
groups a single or several frame elements together and can be styled accordingly. If no group style is specified, the
compose
attribute should be used to specify how the grouped frame elements are to be composed. Lastly, the
element acts as the placeholder for the content of a web page specified by
URL
A uniform resource locator (URL), colloquially known as an address on the Web, is a reference to a resource that specifies its location on a computer network and a mechanism for retrieving it. A URL is a specific type of Uniform Resource Identi ...
through the
source
attribute.
See also
*
XML
Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing data. It defines a set of rules for encoding electronic document, documents in a format that is both human-readable and Machine-r ...
*
XHTML
Extensible HyperText Markup Language (XHTML) is part of the family of XML markup languages which mirrors or extends versions of the widely used HyperText Markup Language (HTML), the language in which Web pages are formulated.
While HTML, pr ...
*
Framing (World Wide Web)
In the context of a web browser, a frame is a part of a web page or browser Window (computing), window which displays content independent of its container, with the ability to load content independently. The HTML or media elements in a frame ma ...
*
HTML element#Frames
*
IFrame
References
W3C Working Draft
External links
* XFrames Resources at W3C
*
The XHTML2 Working Group*
XFrameswas
W3C Working Draft on 6 August 2002
{{DEFAULTSORT:Xframes
World Wide Web Consortium standards
XML-based standards
User interface markup languages