Best practice for breaking up site code?

Hi all,

It has been a while since I’ve been designing websites and I’m trying to remember best practice.

When you’re designing a website where much of the HTML code is the same, what’s the best practice, if there is one, to breaking up the redundant parts of the design into includes?

I seem to remember that HTML includes are blasphemy. Is that correct?

However, if I’m designing a consistent header, footer, etc but do not want to edit those in 5x different files each time I tweak them, what’s a developer to do?

Thanks for the refresher. :slight_smile:

I use PHP includes (it’s my language of choice), I’m not much of a fan of HTML includes (as they exist) but I have no issue with using server-side includes through your chosen server-side language, after all, if you’re making use of any potential back-end scripts it’s just one line of code per include, not much hassle. :slight_smile: