Capacitor and vanilla JS: Load HTML elements in the main HTML
I’m working on a mobile app with capacitor and vanilla Js and I’m following a tutorial to help me set it [up][1]. In the tutorial, it is indicated that to make several pages of our app, we copy and paste the code in each of the pages (index.html, info.html), but I find that a lot of code is duplicated like the header, footer, etc.
Example of index.html: