Difference between revisions of "Web page"

From Internet User Guide
Jump to: navigation, search
(Static webpages and dynamic webpages)
Line 11: Line 11:
 
A [[dynamic webpage]] is one that changes or is customized automatically, through the action of a [[scripting language]]. The script may act either client-side or server-side:
 
A [[dynamic webpage]] is one that changes or is customized automatically, through the action of a [[scripting language]]. The script may act either client-side or server-side:
 
*Client-side scripting is embedded within the web page, and acts on the user's [[User Interface|computer interface]] when the webpage is read by the [[web browser]]
 
*Client-side scripting is embedded within the web page, and acts on the user's [[User Interface|computer interface]] when the webpage is read by the [[web browser]]
*Server-side scripting acts on the [[web server]] to modify or reconstruct the [[webpage]] automatically each time the page is requested, and the modified or reconstructed page is then sent to the user's [[web browser]]
+
*Server-side scripting acts on the [[web server]] to modify or reconstruct the webpage automatically each time the page is requested, and the modified or reconstructed page is then sent to the user's [[web browser]]
  
 
The web server may for example use server-side scripting to construct the HTML text of each webpage by applying a standard format to changing content. The format defines the layout of page elements, and the script then fetches the appropriate contect for each element from the website's [[database]]. (In practice, however, frequently-requested pages are stored in the server's [[cache]] rather than being reconstructed at each request.)
 
The web server may for example use server-side scripting to construct the HTML text of each webpage by applying a standard format to changing content. The format defines the layout of page elements, and the script then fetches the appropriate contect for each element from the website's [[database]]. (In practice, however, frequently-requested pages are stored in the server's [[cache]] rather than being reconstructed at each request.)

Revision as of 20:04, 19 May 2010