what is the difference b/w static & dynamic website?

In this post, you will learn:

  • What is a website?
  • What are the types of websites?
  • What is the difference b/w a static & dynamic website?

In the current information age, web sites have become an important tools in the hands of governments, business organizations and individuals to reach out to their target audiences beyond geographical boundaries. In a simple, technical jargon free and easy to understand way:

A web site is a collection of web pages which are stored on a web server and can be accessed from any where using a web browser. The purpose of a web site is to share information over the network.

Web sites can be of two types:

  • Static web sites
  • Dynamic web sites

Difference b/w static & dynamic web site

Usually people think that the difference b/w a static & dynamic website is that in a static web site, contents are never changed and in a dynamic web site they can be changed by the user or the site administrator/owner. In both type of websites, information can be used either by the user, administrator or owner. The real difference b/w them is the information itself.

In a static web site, the information which is presented to the end user, remain available on the server usually in the form of HTML pages. When a user sends a request to a page, contents of the page are sent by the server as response.

Following diagram describes the working of a static website:

In a dynamic web site, server has programs which are executed when a request is submitted by clients, these programs process requests and generate HTML contents which are sent by the server as response to the client.

Following diagram describes the working of a dynamic web site:

Usually each website has static as well as dynamic contents. If the information, which is to be presented to the user remain same for all users, a static page is created and if it differs from user to user, it is generated dynamically with the help of a program.

The development of such programs which are executed on the server, is called server side programming. Server side programming is usually done in PHP, Java, and .Net.


Its time to recap the main concepts:

  1. A website is a collection of web pages, which are stored on a server and are accessed over the network using HTTP protocol.
  2. Websites are of two types: static & dynamic.
  3. In static websites, information which is presented to the end user remain available on the server in the form of HTML.
  4. In dynamic websites, HTML is generated only when a request is submitted by a user.
  5. Development of programs, which are used for generating HTML on the server, is called server side programming.

If you like the post, then share it...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Leave a Reply

Your email address will not be published. Required fields are marked *