Search code examples
htmlamazon-s3reusability

Reuse html in different pages


This is my website, https://unrealcousinzzz.com/.

I made it in HTML, CSS, and JavaScript. I cannot use PHP or anything like that right now because I am hosting it in AWS S3, because lightsail is too expensive for me. On each page in my website, I use the same HTML code. For example, every page has code for my navbar, and code google AdSense.

If I want to change these, I would have to do it on every page right now. Is there a way to make a file that other HTML pages will read, and use that where it is placed in that page?


Solution

  • Ok, so for me google tag manager is good. I can add custom html, and it goes onto all of my pages.