Static sites Vs Dynamic sites

Static sites Vs Dynamic sites

Static sites Vs Dynamic sites

What is a website?

A website is a collection of single or multiple pages, different things we can access by URL ( Uniform Resource Locator) For example The History of Google and How It Was Invented (thoughtco.com)

Types of websites:

  1. Static sites

  2. Dynamic sites

Statics sites

"Content of static website will change when we change in code" when we do not do any type of changes in the program/ code nothing will change in the whole website. those types of websites are known as static sites.

Languages that are used to make static websites are HTML and CSS.

The uses of static sites are:

  1. Online Resume

  2. Online Portfolio

  3. Gym websites

  4. Blogs

Advantages-

  1. Simplicity- It is very easy to create a static website.

  2. Cost-effective- as we know static websites are not connected to a database and are not backed was connect to it that's why only creation change was included not backed and database maintenance and cost are included

3)Faster web page loading speed- the website was having fixed content and doesn’t have to contact the back-end systems every time the page loads.

Disadvantages-

  1. Limited functionality- as we know static websites were having limited content, and features and are not connected to the back end that's why it can't able to provide user interaction and have limited functionality.

  2. No user interaction - Static websites are not connected to the database and not having any back-end that's why it was not able to get requests and give any response.

Dynamic Sites-

Dynamic sites are used in server-side programming and database to generate their content. dynamic sites provide dynamic and interactive functionality to users. it can link searching data in the database, submit from, data, display custom content etc.

Examples of dynamic sites are-

  1. Youtube

  2. Facebook

  3. Instagram

Advantages-

  1. User interaction- Dynamic sites are connected to the back end that's why we can send requests to users and get responses from the user

  2. Advanced functionality- Dynamic sites provides additional or advanced functionality like booking websites where user can go and book their required things

Disadvantages-

  1. A lot of overhead for simple applications- programmers have to write a lot of code and connect their project backend and create a database and also maintain it from time to time so we can say that there a lot of overhead is there to create a simple website.

  2. Complex to implement- it is very complex to implement dynamic websites because we have to set up a server, complex code to write, and do a lot of effort into dynamic sites