Including Boilerplate Text

Including Boilerplate Text

If you have header or footer material which appears on every page in your site, such as navigation or copyright information, it makes sense to store it centrally and use server-side includes to make it appear where needed. That way, if you change anything, you only have to change it once for it to show up everywhere.

If you have header material in a file called header.html, you can include it in a page like so:


If the include files are stored in their own directory, you’ll need slightly different syntax:


For any of this code to work, you’ll need to make sure that your server is configured to parse HTML pages. Pages with server-side includes usually have the .shtml extension, to let the server know they should be parsed. It’s possible to configure your server to parse all HTML files, but that will slow everything down considerably.

Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved