Static and Dynamic web pages

We can broadly classify web sites and web pages into two categories:

1. Static web pages
2. Dynamic web pages

Static Web Pages

A static web page is a page which has the same content always.

In case of static web pages, content is written in the page itself as plain html. Until the author of the web page updates the content, the content remains the same in the static pages.

Static web pages are meant for providing information which does not change often. For example, visit This page is a static page. The content is always the same (until they update the content by uploading a new html file to the web server).

HTML files are used to create static web pages.

Dynamic Web Pages

Dynamic web pages get content from database. Content is NOT hard-coded in the page itself.

Dynamic pages are created using "serverside code" when the page is loaded every time.