|Basis for comparison||Static Web Pages||Dynamic Web Pages|
|Basic||Static web pages will remain same for the time until and unless someone changes it manually.||Dynamic web pages are behavioral and have the capacity to produce distinctive content for different visitors.|
|Complexity||Simple to design.||Complicated to construct.|
and web languages used to create web pages
|Informatio change||Occurs rarely||Frequently|
|Doesn’t use databases||A database is used.|
Before understanding static and dynamic web pages, we must understand the working of the internet. Web browser and web server play the main role in any internet-based communication. The Hypertext transfer protocol is used for the transaction between the web browser (client) and the web server (server). In this type of communication the browser sends an HTTP request to the server, and then the server sends an HTTP response to the browser with an HTML page and the communication between them ends. So these types of web pages are known as static web pages.
On the other hand, in the dynamic web pages, the web server cannot directly send HTML page with the response. It calls a program that is placed on its hard disk to access the database and transaction processing is also performed.
Definition of 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.
Definition of 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.