The Simplest Ways to Handle HTML Includes

It’s extremely surprising to me that HTML has never had any way to include other HTML files within it. Nor does there seem to be anything on the horizon that addresses it. I’m talking about straight up includes, like taking a chunk of HTML and plopping it right into another. For example the use case for much of the entire internet, an included header and footer for all pages:


<include src=”./header.html"></include>

Content

<include src="./footer.html"></include>
</body>

That’s … Read article
The post The Simplest Ways to Handle HTML Includes appeared first on CSS-Tricks.

Link: https://css-tricks.com/the-simplest-ways-to-handle-html-includes/