How to render common web page elements such as NAVBAR, FOOTER, to every page when I am just using HTML, CSS & JS?
I will be not following the DRY principal if I just copy paste elements to every page.
Any ideas?
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
Another possibility would be the use of WebComponents. With that you can define your own custom html elements, which then get rendered. Check out this quick tutorial about usage of custom elements on MDN
You can take a look at en.wikipedia.org/wiki/Server_Side_...