Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
04-12-2012, 06:45 PM #1
- Join Date
- Apr 2012
- Thanked 0 Times in 0 Posts
How to make template for my website?
I have a problem that I can't seem to figure out. It is probably not too hard, but I haven't found any answer to it so I figured I might try here. I know some basic html and css, but I would have to say I am a noob.
I am making a website with several pages, and wonder how to make a template. Like, how can I have one page where I insert all the objects that will be on each page? So when I update my site I only have to do it once, instead of on every single page.
I know how to use CSS and link pages to a css-document, but I cant add html objects to it, can I? If so how.
Thanks in advance
04-12-2012, 07:03 PM #2
This is the HTML syntax to include files:
<!--#include virtual="folder/file.html" -->
You could also do it server side. With PHP you'd use:
Users who have thanked dan-dan for this post: