What is the difference between static vs dynamic web pages? - nairuzabulhul/Technical-Terms GitHub Wiki

Log

#Static Webpage:

is a webpage that does not change its content based on the user interaction. It shows the same content or information to every visitor accesses the page.

Static web pages can be created using HTML, CSS and JavaScript.

#Dynamic Webpage:

dynamic webpages on the other hand uses server side programming languages like Python, PHP, Ruby.etc. these pages are constantly updated based on the user interaction. Like Facebook website, every user logs in greeted with a different content than another user, the content is drawn from the database.

Great Example from Quora

By Jayesh Mahajan

##Static Web Pages

Static Web pages display the exact same information whenever anyone visits it. Static Web pages do not have to be simple plain text. They can feature detailed multimedia design and even videos. However, every visitor to that page will be greeted by the exact same text, multimedia design or video every time he visits the page until you alter that page's source code.

##Dynamic Web Pages

Dynamic Web pages are capable of producing different content for different visitors from the same source code file. The website can display different content based on what operating system or browser the visitor is using, whether she is using a PC or a mobile device, or even the source that referred the visitor. A dynamic Web page is not necessarily better than a static Web page. The two simply serve different purposes.