How to include html files like include in php?
file, header, html, include, php
Solution
You can use jQuery:
HTML
<div id="container"></div>
jQuery
$("#container").load('somepage.html');
Learn more about the `load` function and what more you can do with it in the documentation.
Problem
How can we include files inside html, like how we usually include files in Php. ``` <?php include "nav.php";?> ```