Home > General, Website Design > Slicing Your Site From Image Template.

Slicing Your Site From Image Template.

SLICE

Publishing site in html require planning first, if you just start making slice of image and just putting it in html you might end up frustrated, so best way to publish website is to plan first, make a plan how you will make tables, how many rows you require, how you will put your navigation etc etc.

If you put header in separate file, left links navigation (if any) in separate file and footer in separate file, this is the best strategy,   because if you do a mistake or your client need to change few of his links you don’t need to edit whole site, you just edit single file and whole site is edited.

 

To include files in html, we have 2 choices, either use clientside script such as javascript include or use serverside include like programming language php or asp, both are very easy and both are common, for javascript you use:

 

<!–#include virtual=”address of file here” –>

 

just put this line at the place where you want file to be and change the address of file.

 

in php we use:

 

<?php include(”file address here”); ?php>

 

in using php you change your file extension from .html to .php

 

you don’t need to know any programming knowledge for that, just use these line at the place where you want your file shown.

 

If you make include folder separately this will make your site more manageable, put your all header, footer, links, navigation in separate folder and just point it from your html page.

Categories: General, Website Design Tags:
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.