Advantages and disadvantages of a static html website vs a complex dynamic website
What is a static website?
Speed: Static website generally render much faster than a dynamic website due to not having complex rendering, database queries etc.
Cheap: Static websites can be developed and designed by almost anyone meaning there is reduced costs employing a developer to setup and maintain your website.
Simplicity: Code is easy to read, easy to write and and easier to maintain. Templates/themes are normally provided and can easily be altered to suite your website needs.
Hosting: There are more hosting options available for a static website, many of which are even free - eg: Github pages or Netlify which grab your code, build it and host it right from your Git repository. Server hosting needs less resources too due to only serving static content and not needing a Database and server processing.
Simplicity: Simplicity comes at a cost. Static websites lose the ability to do complex processing, database queries etc.
Limitations: There are certain things you simply cannot do making static websites suited to certain website types.
When are static websites a good choice?
Whilst static websites are not suited for all situations, there are some really good instances where a static website is a good alternative to a complex dynamic one. Such as:
- Business websites
- Community information
- Personal website
- Photographer website
You can simply clone these repositories, edit the template files, add your colors to the CSS and add your content. You can then follow the steps to deploy to a hosting provider.