4 ms·
How about the ability to include HTML code that's in another file or link? I'm surprised that such a basic modularity mechanism still isn't in the HTML standar
by rudolfwinestock 7y ago
How about the ability to include HTML code that's in another file or link? I'm surprised that such a basic modularity mechanism still isn't in the HTML standard.
- saagarjha 7y ago<iframe>?
- ahmedfromtunis 7y agoNot the OP, but I guess they mean the ability to include portions of html (such as the header, the footer, and the likes) into other pages to improve code reuse.
- unilynx 7y agothat would have been <iframe seamless>, but I don't think it was ever implemented and it was eventually dropped from the standard.
- kuroguro 7y agoThere used to be "imports" for HTML5 but they deprecated it for some reason. https://www.html5rocks.com/en/tutorials/webcomponents/imports/ https://www.html5rocks.com/en/tutorials/webcomponents/import... https://caniuse.com/#feat=imports https://caniuse.com/#feat=imports
- capableweb 7y agoGood news, it's already been proposed! <link rel="import" href="/myfile.html"> Some links: https://w3c.github.io/webcomponents/spec/imports/ https://w3c.github.io/webcomponents/spec/imports/ https://www.html5rocks.com/en/tutorials/webcomponents/imports/ https://www.html5rocks.com/en/tutorials/webcomponents/import... Not sure about the current support in browsers, but the specification is currently a draft