I want the header to display on each page but without coding the tags on each page? I think they're called external files but I can't remember how to set the anchors?
Here is the site I am working on (it's currently written entirely with FrontPage). You'll see that the index has three frames and I want to replace them with css <div>'s.
You save this page as your template.
You create a single cascading style sheet with all the rules for your page styling and save this remembering to save it with the .css extension. If you create this file in your html editor, the editor will automatically save it with the .html or .htm extension if you don't make sure you add the css extension.
You will now need to add a one line link back to the css file at the top of every new html page so that the page knows where to pick up the rules which will style the page content.
It is never a bad idea to get out paper and pencil to draw the basic blocks for your page before you begin on a template, just to make sure that all your pages will work well with that layout. If you feel that some pages need a different layout (for instance - a photo album) then create a different template and add a few more lines of code into your css file to cope with the additional styling required.
My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).
My Personal Website: http://www.EricSEnglish.com
Fe is right on with the php include statements. You just change code in one place that way.
I primarily just create a single "template" with the theme I am presenting and name that file template.HTML, then just copy and paste for all the other pages to add or delete specific content. I really need to just start creating all my sites in php instead of html but I'm stuck in my ways.
Either method will cut down your coding time. My way just adds a bit of additional work. Good luck.
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.