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: ... <body> <include src="./header.html"></include> Content <include src="./footer.html"></include> </body> ... That's not real, by the way. I just wish it was. People have been looking to other languages to solve this problem for them forever. It's HTML preprocessing, in a sense. Long before we were preprocessing our CSS, we were using tools to manipulate our HTML. And we still are, because the idea of includes is useful on pretty much every website in the world. Use PHP Can you use PHP instead? ... <body> <?p...