Like iframe, it "includes" a full subdocument as a block element, which isn't quite what the OP is hinting at.
Like iframe, it "includes" a full subdocument as a block element, which isn't quite what the OP is hinting at.
It was really shit. Browser navigation cues disappear, minor errors will fuck up the entire thing by navigating fixed element frames instead of contents, design flexibility disappears (even as consistent styling requires more efforts), frames don’t content-size so will clip and show scroll bars all over, debugging is absolute ass, …
And it increases resource use.
A bit of vanilla JavaScript with WebComponents is a few lines:
https://gomakethings.com/html-includes-with-web-components/
Edit: “t” was supposed to be the object tag.
You seem to have a rather original definition of "pure HTML".
An html only option that exists is using object. Replying to the miss of the OP in case others might find it suitable.
If a tiny bit of vanilla JavaScript can be tolerated, WebComponents appear to have a broad standardized approach that is not framework dependant.
I’d probably explore WebComponents, but wanting the height of JavaScript without JavaScript..
The OP doesn’t need to hint.