Home > Others > HTML5 Imports: Import HTML Files Into HTML Files

HTML5 Imports: Import HTML Files Into HTML Files


The „link“ element is a blessing. It allows for easy embedding of stylesheets and JavaScripts needed in multiple documents. It didn’t allow the embedding of HTML files, though. To achieve that we were limited to the „iframes“ element or the JavaScript method „XMLHttpRequest()“. Thanks to the new HTML5 Imports, we can now use the „“ element to load one HTML file into another.

Categories: Others Tags:
  1. No comments yet.
  1. No trackbacks yet.