Difference between revisions of "Web page"
From Internet User Guide
Line 7: | Line 7: | ||
==Static webpages and dynamic webpages== | ==Static webpages and dynamic webpages== | ||
− | A [[static webpage]] is a file of static [[HTML]]text stored within the [[web server]]'s file system. | + | A [[static webpage]] is a file of static [[HTML]] text stored within the [[web server]]'s file system. |
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 | + | *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.) | ||
==External links== | ==External links== |