Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML vs SHTML

Status
Not open for further replies.

usp004

ISP
Jul 10, 2000
46
US
Can someone explain the difference between files with the extension HTML vs files with the extension SHTML?? Thanks in advance.
 
SHTML generally means the file can be parsed by the server for specific server-side replacements, before the HTML is presented to the browser. The term for this is server-side includes, or SSI. The main benefit being, you can write some code that gets "caught" by the server before the browser sees it and get replaced with the contents of another file, such as an external textfile. This is very useful if you want a small portion of HTML to be the same on every page of your site (such as a navbar), but you can edit it externally to update your whole website.

Check out for its SSI and XSSI tutorials.

Server-side scripting languages like PHP, or ASP, make SSI obsolete, because they can do this and much more.
 
Actually check out the post right next to this about including html files :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top