Definition of static web pages
The static web pages are simple and are written in the HTML language and stored on the webserver. Each time the server receives a request with respect to a web page, it sends a reply along with the requested web page to the client without performing any additional processing. Simply locate that page on your hard drive and add HTTP headers, and answer an HTTP response.
Definition of dynamic web pages
Dynamic web pages provide a solution for static web pages. The dynamic content of the website may vary depending on the number of parameters. As stated earlier that it is different from the static web era, it not only sends an HTML page as an answer. The web server calls a program located on the hard drive that can access a database, perform a transaction procedure, etc. If the application program produces an HTML output, it is used to build an HTTP response by the webserver.
Static and dynamic website
Below is the difference between a static and dynamic website