Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-12-2012, 05:45 PM   PM User | #1
Saphigon
New to the CF scene

 
Join Date: Apr 2012
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Saphigon is an unknown quantity at this point
How to make template for my website?

Hello,
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.

The case:
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
Saphigon is offline   Reply With Quote
Old 04-12-2012, 06:03 PM   PM User | #2
dan-dan
Regular Coder

 
dan-dan's Avatar
 
Join Date: Aug 2009
Location: England
Posts: 483
Thanks: 22
Thanked 79 Times in 78 Posts
dan-dan is on a distinguished road
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:
include 'folder/file.php';
dan-dan is offline   Reply With Quote
Users who have thanked dan-dan for this post:
Saphigon (04-14-2012)
Reply

Bookmarks

Tags
html, template

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:36 PM.


Advertisement
Log in to turn off these ads.