XFrames


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.

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 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 </code> content is not popularly implemented, agents that do not support frames fail to <a href="/wiki/Render">render</a> pages correctly and at the same time prevent any <a href="/wiki/Search_engine_optimization">search engine optimization</a>.</li></ul>XFrames overcomes the bookmarking problem by encoding the population of <a href="/wiki/The_frames">the frames</a> into the URI, thus making it possible to bookmark/add a favorite of <a href="/wiki/A_page">a page</a> successfully.<h2>XFrames implementation</h2>Similar to other <a href="/wiki/Markup_languages">markup languages</a>, XFrames supported a <a href="/wiki/Number_of_elements">number of elements</a> and respective attributes. The following is a simple demonstration for the proposed implementation of <a href="/wiki/A_frames">a frames</a> web page:<br><syntaxhighlight lang=&quot;xml&quot;><br><frames xmlns=&quot;http://www.w3.org/2002/06/xframes/&quot;><br> <head><br> <title>Home Page</title><br> <style type=&quot;text/css&quot;><br> #header <br> #footer <br> #nav <br> </style><br></head><br> <group compose=&quot;vertical&quot;><br> <frame xml:id=&quot;header&quot; source=&quot;banner.xhtml&quot;/><br> <group compose=&quot;horizontal&quot;><br> <frame xml:id=&quot;main&quot; source=&quot;news.xhtml&quot;/><br> <frame xml:id=&quot;nav&quot; source=&quot;nav-menu.xhtml&quot;/><br> </group><br> <group compose=&quot;vertical&quot;><br> <frame xml:id=&quot;footer&quot; source=&quot;disclaimer.xhtml&quot;/><br> </group><br> </group><br></frames><br></syntaxhighlight><br>The <code><frames></code> element acts as the containing <a href="/wiki/Element_of">element of</a> the collection of frames. This collection is what is being referred to as the 'frameset' of a web page. Similarly to <a href="/wiki/XHTML">XHTML</a> and <a href="/wiki/HTML">HTML</a> <a href="/wiki/Markup">markup</a>, the <code><head></code> element contains metadata primarily used for <a href="/wiki/Search_optimization">search optimization</a> 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 <a href="/wiki/URL">URL</a> through the <code>source</code> attribute.<br> </article> </main> <aside> <div class="sidebar-widget"><div class="sidebar-header"><h3>Books</h3></div><ul class="top-10-list"><li><a href="/wiki/Wuthering_Heights"><span class="rank">1</span> Wuthering Heights <span class="pop-tag">287,720</span></a></li><li><a href="/wiki/Lord_of_the_Flies"><span class="rank">2</span> Lord of the Flies <span class="pop-tag">41,046</span></a></li><li><a href="/wiki/Tales_of_Dunk_and_Egg"><span class="rank">3</span> Tales of Dunk and Egg <span class="pop-tag">18,945</span></a></li><li><a href="/wiki/Jane_Eyre"><span class="rank">4</span> Jane Eyre <span class="pop-tag">12,439</span></a></li><li><a href="/wiki/The_Housemaid_(novel)"><span class="rank">5</span> The Housemaid (novel) <span class="pop-tag">12,142</span></a></li><li><a href="/wiki/Project_Hail_Mary"><span class="rank">6</span> Project Hail Mary <span class="pop-tag">10,852</span></a></li><li><a href="/wiki/Hamlet"><span class="rank">7</span> Hamlet <span class="pop-tag">10,112</span></a></li><li><a href="/wiki/The_Museum_of_Innocence"><span class="rank">8</span> The Museum of Innocence <span class="pop-tag">9,847</span></a></li><li><a href="/wiki/A_Song_of_Ice_and_Fire"><span class="rank">9</span> A Song of Ice and Fire <span class="pop-tag">9,709</span></a></li><li><a href="/wiki/Dungeon_Crawler_Carl"><span class="rank">10</span> Dungeon Crawler Carl <span class="pop-tag">8,128</span></a></li></ul></div><div class="sidebar-widget"><div class="sidebar-header"><h3>Films</h3></div><ul class="top-10-list"><li><a href="/wiki/Wuthering_Heights_(2026_film)"><span class="rank">1</span> Wuthering Heights (2026 film) <span class="pop-tag">229,998</span></a></li><li><a href="/wiki/XXX_(film_series)"><span class="rank">2</span> XXX (film series) <span class="pop-tag">93,035</span></a></li><li><a href="/wiki/The_Housemaid_(2025_film)"><span class="rank">3</span> The Housemaid (2025 film) <span class="pop-tag">89,567</span></a></li><li><a href="/wiki/Marty_Supreme"><span class="rank">4</span> Marty Supreme <span class="pop-tag">78,861</span></a></li><li><a href="/wiki/Predator:_Badlands"><span class="rank">5</span> Predator: Badlands <span class="pop-tag">63,332</span></a></li><li><a href="/wiki/Dhurandhar"><span class="rank">6</span> Dhurandhar <span class="pop-tag">59,019</span></a></li><li><a href="/wiki/Goat_(2026_film)"><span class="rank">7</span> Goat (2026 film) <span class="pop-tag">50,146</span></a></li><li><a href="/wiki/XXX:_Return_of_Xander_Cage"><span class="rank">8</span> XXX: Return of Xander Cage <span class="pop-tag">49,188</span></a></li><li><a href="/wiki/XXX_(2002_film)"><span class="rank">9</span> XXX (2002 film) <span class="pop-tag">48,294</span></a></li><li><a href="/wiki/Crime_101_(2026_film)"><span class="rank">10</span> Crime 101 (2026 film) <span class="pop-tag">44,231</span></a></li></ul></div><div class="sidebar-widget"><div class="sidebar-header"><h3>Programming Languages</h3></div><ul class="top-10-list"><li><a href="/wiki/C_(programming_language)"><span class="rank">1</span> C (programming language) <span class="pop-tag">3,623</span></a></li><li><a href="/wiki/Python_(programming_language)"><span class="rank">2</span> Python (programming language) <span class="pop-tag">3,095</span></a></li><li><a href="/wiki/JavaScript"><span class="rank">3</span> JavaScript <span class="pop-tag">2,004</span></a></li><li><a href="/wiki/C++"><span class="rank">4</span> C++ <span class="pop-tag">1,491</span></a></li><li><a href="/wiki/Go_(programming_language)"><span class="rank">5</span> Go (programming language) <span class="pop-tag">1,470</span></a></li><li><a href="/wiki/Scratch_(programming_language)"><span class="rank">6</span> Scratch (programming language) <span class="pop-tag">1,469</span></a></li><li><a href="/wiki/Rust_(programming_language)"><span class="rank">7</span> Rust (programming language) <span class="pop-tag">1,429</span></a></li><li><a href="/wiki/R_(programming_language)"><span class="rank">8</span> R (programming language) <span class="pop-tag">1,340</span></a></li><li><a href="/wiki/Java_(programming_language)"><span class="rank">9</span> Java (programming language) <span class="pop-tag">1,308</span></a></li><li><a href="/wiki/Bash_(Unix_shell)"><span class="rank">10</span> Bash (Unix shell) <span class="pop-tag">1,061</span></a></li></ul></div><div class="sidebar-widget"><div class="sidebar-header"><h3>TV Series</h3></div><ul class="top-10-list"><li><a href="/wiki/A_Knight_of_the_Seven_Kingdoms_(TV_series)"><span class="rank">1</span> A Knight of the Seven Kingdoms (TV series) <span class="pop-tag">109,423</span></a></li><li><a href="/wiki/Love_Story_(2026_TV_series)"><span class="rank">2</span> Love Story (2026 TV series) <span class="pop-tag">77,103</span></a></li><li><a href="/wiki/How_to_Get_to_Heaven_from_Belfast"><span class="rank">3</span> How to Get to Heaven from Belfast <span class="pop-tag">62,374</span></a></li><li><a href="/wiki/The_Lincoln_Lawyer_(TV_series)"><span class="rank">4</span> The Lincoln Lawyer (TV series) <span class="pop-tag">52,913</span></a></li><li><a href="/wiki/The_Pitt"><span class="rank">5</span> The Pitt <span class="pop-tag">39,497</span></a></li><li><a href="/wiki/Heated_Rivalry"><span class="rank">6</span> Heated Rivalry <span class="pop-tag">39,462</span></a></li><li><a href="/wiki/Bridgerton"><span class="rank">7</span> Bridgerton <span class="pop-tag">36,101</span></a></li><li><a href="/wiki/Small_Prophets"><span class="rank">8</span> Small Prophets <span class="pop-tag">34,593</span></a></li><li><a href="/wiki/The_Night_Manager_(British_TV_series)"><span class="rank">9</span> The Night Manager (British TV series) <span class="pop-tag">32,230</span></a></li><li><a href="/wiki/The_'Burbs_(TV_series)"><span class="rank">10</span> The &#039;Burbs (TV series) <span class="pop-tag">28,506</span></a></li></ul></div><div class="sidebar-widget"><div class="sidebar-header"><h3>Video Games</h3></div><ul class="top-10-list"><li><a href="/wiki/Wordle"><span class="rank">1</span> Wordle <span class="pop-tag">34,614</span></a></li><li><a href="/wiki/Reanimal"><span class="rank">2</span> Reanimal <span class="pop-tag">20,783</span></a></li><li><a href="/wiki/Mewgenics"><span class="rank">3</span> Mewgenics <span class="pop-tag">15,526</span></a></li><li><a href="/wiki/Resident_Evil_Requiem"><span class="rank">4</span> Resident Evil Requiem <span class="pop-tag">12,982</span></a></li><li><a href="/wiki/God_of_War_(franchise)"><span class="rank">5</span> God of War (franchise) <span class="pop-tag">11,920</span></a></li><li><a href="/wiki/Roblox"><span class="rank">6</span> Roblox <span class="pop-tag">11,116</span></a></li><li><a href="/wiki/High_on_Life_2"><span class="rank">7</span> High on Life 2 <span class="pop-tag">9,572</span></a></li><li><a href="/wiki/Minecraft"><span class="rank">8</span> Minecraft <span class="pop-tag">9,458</span></a></li><li><a href="/wiki/Iron_Lung_(video_game)"><span class="rank">9</span> Iron Lung (video game) <span class="pop-tag">9,307</span></a></li><li><a href="/wiki/Grand_Theft_Auto_V"><span class="rank">10</span> Grand Theft Auto V <span class="pop-tag">9,084</span></a></li></ul></div> </aside> </div> <footer> <div class="footer-content"> <div class="footer-info"> <p>&copy; 2026 <a href="https://owiki.org" class="cc-link">OWIKI.org</a>.</p> <p>Content is available under <a href="/wiki/Creative_Commons" class="cc-link">Creative Commons Attribution-ShareAlike 4.0</a> unless otherwise noted.</p> </div> <div class="footer-system"> <p>Uplink Status: <span class="status-online">ONLINE</span></p> <p>Version: <span class="protocol-id">1.01</span></p> </div> </div> </footer> <script> const menuToggle = document.getElementById('mobile-menu'); const navLinks = document.getElementById('nav-links'); menuToggle.addEventListener('click', () => { navLinks.classList.toggle('active'); }); </script> </body> </html>