I have 2 HTML files, suppose a.html and b.html. In a.html I want to include b.html.
In JSF I can do it like that:
<ui:include src="b.xhtml" />
It means that inside a.xhtml file, I can include b.xhtml.
How can we do it in *.html file?
using html 5 (if it can be done at all in html 5).
Surprisingly, the same question was asked and it is possible: HTML5 include file
Rafa’s answer:
Use the object tag:
foo.inc should include valid HTML.
I tested it on Konqueror, Firefox and Chromium.
Note you must use a separate
</object>tag otherwise any content after it gets discarded.If you find it useful (I do), please upvote Rafa answer (not mine) because “it is not possible” is spreading like disease.