11.11.2014 Views

Professional Web Design: Techniques and Templates, Fourth Edition

Professional Web Design: Techniques and Templates, Fourth Edition

Professional Web Design: Techniques and Templates, Fourth Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Underst<strong>and</strong>ing Include Files 123<br />

Figure 6.13<br />

The same <strong>Web</strong> page as in Figure 6.12 but in Print Preview mode that uses a print style sheet to determine<br />

what is printed.<br />

Underst<strong>and</strong>ing Include Files<br />

Include files are individual files that can be repeatedly called into different pages<br />

(for example, ColdFusion, PHP, .NET, or JSP pages). A blessing to <strong>Web</strong><br />

designers, include files not only allow a site to be modular (various easily interchangeable<br />

pieces), but more importantly, they also reduce maintenance time.<br />

An example of an include file might be the footer text of a site. Instead of placing<br />

the text in every page, a designer might include one line of code in every page<br />

that calls that footer text, which is in only one file. Then, when the footer needs to<br />

be edited, the designer edits only one page.<br />

To use include files, all a designer needs is to host a site on a server that offers<br />

server-side processing, such as Microsoft (.NET pages), Apache HTTP Server<br />

(SHTML pages), Adobe ColdFusion server (CFM pages), JSP server (JSP pages),<br />

Game Developing GWX

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!