I have some HTML files, and each one of them I want to partially render in another HTML file, for example header.html
and footer.html
in order to o
As others said, it looks like it can't be done with HTML alone. Another way it could be done on the server-side, if you are using Java, is with Thymeleaf.
For example, adding a main menu on every page with
. Then mainmenu.html could just contain a bunch of divs. The fragment doesn't need to be a full HTML page.