Static web page
This article needs additional citations for verification. (February 2008) (Learn how and when to remove this template message)
A static web page (sometimes called a flat page or a stationary page) is a web page that is delivered to the user's web browser exactly as stored, in contrast to dynamic web pages which are generated by a web application.
Consequently, a static web page displays the same information for all users, from all contexts, subject to modern capabilities of a web server to negotiate content-type or language of the document where such versions are available and the server is configured to do so.
Static web pages are often HTML documents stored as files in the file system and made available by the web server over HTTP (nevertheless URLs ending with ".html" are not always static). However, loose interpretations of the term could include web pages stored in a database, and could even include pages formatted using a template and served through an application server, as long as the page served is unchanging and presented essentially as stored.
Static web pages are suitable for content that never or rarely needs to be updated, though modern web template systems are changing this. Maintaining large numbers of static pages as files can be impractical without automated tools, such as static site generators. Another way to manage static pages is online compiled source code playgrounds, e.g. GatsbyJS and GitHub may be utilized for migrating a WordPress site into static web pages. Any personalization or interactivity has to run client-side, which is restricting.
Advantages of a static website
- Provide improved security over dynamic websites (dynamic websites are at risk to web shell attacks if a vulnerability is present)
- Improved performance for end users compared to dynamic websites
- Fewer or no dependencies on systems such as databases or other application servers 
- Cost savings from utilizing cloud storage, as opposed to a hosted environment
Disadvantages of a static website
- Dynamic functionality must be performed on the client side
- Melendez, Steven (10 August 2018). "The Difference Between Dynamic & Static Web Pages". Chron. Archived from the original (html) on 20 March 2019. Retrieved 20 March 2019.
Static by definition means something that does not change. The first pages on the World Wide Web were largely static and unchanged, delivering the same information about a particular topic to anyone who visited. In some cases, sites may evolve slightly over time but are still largely static, meaning that they only change when manually changed by their creators, not on a regular and automated basis.
- "Definition of: dynamic Web page". PC Magazine. Archived from the original (html) on 17 January 2017. Retrieved 20 March 2019.
A Web page that provides custom content for the user based on the results of a search or some other request.
- "Site statique ou dynamique" [Static or dynamic site]. morphenZero (in French). Archived from the original (html) on 11 September 2016. Retrieved 27 July 2019.
Ces pages peuvent présenter toute forme de contenu, animations flash, images, musique, vidéo etc... mais elles sont toujours présentées de la même façon.
- "What is a Static Web Page? - Definition from Techopedia". Techopedia.com. Retrieved 2018-11-04.
- Rascia, Tania (14 March 2019). "The End of an Era: Migrating from WordPress to Gatsby". Archived from the original (html) on 21 March 2019. Retrieved 20 March 2019.
However, I realized that an SSG like Gatsby utilizes the power of code/data splitting, pre-loading, pre-caching, image optimization, and all sorts of performance enhancements that would be difficult or impossible to do with straight HTML.
- Bouças, Eduardo (20 May 2015). "An Introduction to Static Site Generators". Archived from the original (html) on 26 June 2019. Retrieved 20 March 2019.
- "Why use a static site generator? - Jekyll Tips". Jekyll Tips. 2017-02-06. Retrieved 2017-02-17.
- "Why Static Website Generators Are The Next Big Thing – Smashing Magazine". Smashing Magazine. 2015-11-02. Retrieved 2017-02-17.
- Bouças, Eduardo (20 May 2015). "An Introduction to Static Site Generators". Archived from the original (html) on 21 July 2015. Retrieved 20 March 2019.
Less hassle with the server: Installing and maintaining the infrastructure required to run a dynamic site can be quite challenging, especially when multiple servers are involved or when something needs to be migrated. There’s packages, libraries, modules and frameworks with different versions and dependencies, there’s different web servers and database engines in different operating systems.
- Vincet, William (9 October 2018). "Static vs Dynamic Websites: Pros and Cons".
- The definitive listing of Static Site Generators, a community-curated list of static site generators.