Includer.js is a tiny JavaScript library that enables you to inject HTML content into the current page from external HTML files.
- Load the Includer.js library in the document.
<script src="https://unpkg.com/includerjs@2.0.1/dist/index.js"></script>
- Add the component to the page and specify the path to the external HTML files.
<include src="header.html"></include>
<include src="footer.html"></include>