Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Common HTML Code


Message #1 by "Richard Ashe" <richard@a...> on Wed, 15 Nov 2000 19:41:16 -0000
At 19:41 15/11/2000 +0000, you wrote:
>Hi,
>I often use the same HTML code in multiple pages. In order to facilitate
>page maintenance, is it possible to put the common code in a single
>file/page/whatever and reference it from all the other pages?
>Thanks,
>Richard Ashe

Use SSI (Server Side Includes) - rename the files from .html to .shtml and 
call other pages using the syntax:

<!--#include file="include/header.asp"-->

or

<!--#include virtual="include/header.asp"-->

Most web hosts support this feature.


  Return to Index