- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi,
I actually started building my first site from scratch..
how can one include one html inside other…? suppose I have header common for a page.. I want to make header.html and just include this on every other page…
You have Server Side Includes (SSI): http://httpd.apache.org/docs/current/howto/ssi.html
Or PHP includes: http://php.net/manual/en/function.include.php
Follow template structure, So u can add the header and footer in the template and include the template in other html pages.
@TheDoc… I am not using any server.. I just have a folder with bunch of htmls and css…
@gowda24… I have templates header.html and footer.html also home.html….
I also included following in home.html
//where i need header to be included
// where footer need to be included
also have .htaccess file in my folder structure…
sorry here is the code i am using to include the files