Skip to main content

Concepts of Static and Dynamic Web pages.

Static Web Pages

Static web pages are simple and written in the HTML language and stored in web server. Whenever server receives a request regarding a web page, it sends a response along with the requested web page to the client without performing any additional processing. It just locates that page on its hard disk and add HTTP headers, and reply back an HTTP response.

The peculiar thing in a static web page is that the content in these types of the web page does not change depending on the request. They are always the same unless the content is changed physically on the server’s hard disk. That is the reason these web pages are known as static web pages.

Dynamic Web Pages

Dynamic web pages provide a solution for the static web pages. The dynamic web page content can vary depending on the number of parameters. As it is discussed above that dissimilar to static web age, it not just simply send HTML page in response. The web server calls a program located on the hard disk which can access a database, perform transaction procedure, etcetera. If the application program produces HTML output, which is used to construct an HTTP response by the web server. The web server sends the HTTP response thus created, back to the web browser.

The dynamic web pages are employed where the information changes very often such as stock prices, weather information, news and sports updates. Let’s assume a person has to physically change the Web page every 10 seconds to show the latest update of the stock prices which is impractical to physically alter the HTML pages very often, so in this case, a dynamic web page can be used.