Static websites and dynamic websites

Alexandros Nasiopoulos on 02-08-2019. Modified on 19-09-2020
Static websites and dynamic websites

Static websites and dynamic websites

A website is a set of linked web resources, usually web pages, that normally have a common domain name and are published to a web server.

A website can be accessed through a public Internet Protocol (IP) network, or a private local area network (LAN), through a uniform resource locator (URL) that identifies the website and is unique.

A website is a document suitable to act as an online resource on the world wide web.

An appropriate document is a document that the browser you use to browse the Internet can read. That is a document that can contain HTML, CSS, javascript, text, and numbers. An online resource is an identifiable object or a recognizable entity, online.

Websites are usually linked with links. The most common way to link web pages is to have links in the main menu at the top of most websites or in the footer, ie at the bottom of most websites. Such links may, however, be found within, for example, one article and may refer the reader to read relevant information contained in another article.

A website can be static or dynamic. Of course, in both static and dynamic web pages, the files that arrive in the user's browser do not cease to be web pages, containing HTML, CSS, javascript, text, and numbers.

Static websites

Static web pages are HTML files that are delivered to the user's browser, e.g. Google Chrome, Safari, Firefox, exactly as they are stored on the server.

Static websites and dynamic websites

Static websites are suitable in cases where their content will never change or can rarely change. A static website always displays the same content to all users and cannot, for example, display a different language depending on the country of the visitor, unless dynamic features are added.

Advantages of static websites

  • They are extremely secure compared to dynamic websites
  • They have a much better opening speed compared to dynamic websites
  • They are less likely to malfunction because fewer systems are needed to operate, e.g. databases
  • They have reduced hosting costs compared to dynamic websites due to their smaller size.

The above, of course, do not necessarily apply to all static websites. A static website can, for example, have a very 'heavy' template, with huge javascript code, which can even be hosted on another web server, with unknown features, so its speed would be greatly reduced.

Disadvantages of static websites

If you want a website just to have a website that you will never going to change its content, then a static website can save you a lot of trouble.

Dynamic websites

Dynamic websites are those websites whose structure is controlled by an application server that processes scripts located on the server. The parameters in the code determine how each website will be 'assembled' before it is sent to the user.

Static websites and dynamic websites

The server may, for example, read and execute a piece of code that says, "If the visitor views the site from France, show the content of the site with the text in French". This, of course, is a very simple example. A composite example e.g. for a hotel website it could be, "Show hotel rooms that have a fixed price for the dates requested by the user, are not booked on these dates, can accommodate at least 3 persons and increase the price for users from France by 10%. "

Advantages of dynamic websites

  • They have dynamic functions
  • You can edit or add content to your website
  • You can edit or add features
  • You can change the look of your website

All of the above, of course, do not necessarily apply to all dynamic websites. There are e.g. custom dynamic websites that do not have the required code for some of the above functions but have other advantages.

Disadvantages of dynamic websites

The disadvantages of dynamic websites are usually the opposite of the advantages of static websites, as seen above. But, as we already mentioned, there are custom dynamic websites or custom online stores, with far fewer disadvantages than the average dynamic websites.

If you need more information, you can visit our web development page.

You can, of course, contact us, if you like.

Reviews (0)
Comments (0)