![]() |
![]() |
Publish Online with The Documents Guy - Static Content
Is dynamic always better than static? Not necessarily. Where content seldom changes or consists of only small amounts of data, static HTML web pages work just fine. Static components or even web pages are frequently used to navigate dynamic document structure and to display components that don't change from page to page. If content is small or is seldom going to change, using static web pages to display it remains a feasible option. This website uses static components for the header and footer of every page, as well as the CSS that formats and styles each page. The contact page is also a static file. Even though static generally refers to a set of separate HTML files residing in a web directory, the files or portions of content can also be stored in a database just as easily. In fact, doing so makes maintenance of the website easier. For example, the CSS stylesheet that determines the style of the web pages can be stored as a database record. This makes changing or adding styles easier than using FTP to upload a new style sheet file. The copyright notice in the footer of each page of this website is stored as a database record that is retrieved dynamically into the static file that displays the page footer. << Return to server side and client side Scripting | Have fun with the Demos >> |
|
|
Content Copyright © 2012 The Documents Guy, all rights reserved.
|
|