HTML5 include file [duplicate]

Use the object tag:

<object name="foo" type="text/html" data="https://stackoverflow.com/questions/8401113/foo.inc"></object>

foo.inc should include valid HTML.

Note: do NOT use the self-closing <object/> style. That will prevent content after the tag from being displayed.

Leave a Comment