static web page
{{Short description|Web page delivered to web browser as-is}}
{{Refimprove|date=February 2008}}
A static web page, sometimes which is called a flat page or a stationary page, is a web page that is delivered to a 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. However, a webpage's JavaScript can introduce dynamic functionality which may make the static web page dynamic.
Overview
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.
The content of static web pages remains stationary irrespective of the number of times it is viewed. Such web pages are suitable for the contents that rarely need 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. Any personalization or interactivity has to run client-side, which is restricting.
=Advantages=
- 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
- Security configurations are easy to set up, which makes it more secure
=Disadvantages=
Static site generators
= Implementations =
- Jekyll (powers GitHub Pages)
- Middleman
- Hugo
- Next.js
- Astro.build
- Pelican{{Cite web |title=Pelican – A Python Static Site Generator |url=https://getpelican.com/ |website=Pelican |publisher=Pelican |access-date=February 11, 2025}}
- Franklin{{Cite web |title=Building static websites in Julia |url=https://franklinjl.org/ |website=Franklin |publisher=Franklin |access-date=February 11, 2025}}
References
{{Reflist|30em|refs=
{{ cite web | url = https://www.pcmag.com/encyclopedia/term/42199/dynamic-web-page | title = Definition of: dynamic Web page | access-date = 2019-03-20 | website = PC Magazine | quote = A Web page that provides custom content for the user based on the results of a search or some other request. | archive-url = https://web.archive.org/web/20170117040526/https://www.pcmag.com/encyclopedia/term/42199/dynamic-web-page | archive-date = 2017-01-17 | df = dmy-all }}
}}
External links
- [https://staticsitegenerators.net/ The definitive listing of Static Site Generators], a community-curated list of static site generators.
{{Web interfaces}}