This question is maybe made in the past, but I can't find a reference or a best practice for it. I was researching best ways to get it and I just find php includes or angular web apps etc but not best practices or what it normally developers do to create their websites, I never worked on a developing enviroment so I don't know what is the best way to create a website just reducing amount of innecesary code, that's maybe a subjective question, but I'm kind of new on this, I'm trying to create a multipage clothing website, it will have so many pages and I need to know what the best practice to create it... the website have a header and footer wich repeats on every page so I need to reduce code just making modules, but I don't know how to approach this and I don't really like to use CMS
in this link: stackoverflow question they just give option but what is actually the best practice for it??