If you are familiar with PHP, there you can quickly embed another PHP or HTML file within your page using include and require statements.
This saves your time when you need to add the same line of code in several files.
But what when you are not using Server side scripting within your project.
For solving your problem you can use <iframe > which simply add another page in your file but I don’t think it is a better way.
You can handle this on your Client-side with jQuery.
There are two ways in jQuery for including one file to another HTML file –
- AJAX request
- .load() method