Web page
Content provided by a website

A web page, or webpage, sometimes contextually shortened to just page, is a document, typically published on the Web, and normally viewed using a web browser, which consists of hypertext and often additional components such as scripts and graphics. Since an author may publish one or more related web pages together in a website, the terms website and web page form a metaphor for paper pages bound together into a book.
02Elements
A web page is fundamentally a structured document consisting of a block of text written in the HyperText Markup Language (HTML). This traditionally includes all of the page's static textual content (though some websites retrieve and inject such content dynamically via javascript to varying extents).
The hypertext may include references to resources found within other files hosted on the same website, or on others, which require separate retrieval. In some cases such resources might alternatively be embedded directly within the hypertext. Such resources include:
- Cascading Style Sheets (CSS), which provide presentation rules, aka styling information, for the page. This guides presentation software, such as browsers, how the web page should be drawn for presentation to the user, replacing or adjusting software defaults for the different structural hypertext elements.
- JavaScript, which enables a wide range of behavior, including expanding interactivity, and dynamic retrieval of additional content. The vast majority of webpages reportedly include javascript elements.
- WebAssembly, which supplements javascript with the ability for complex processing to be performed much more efficiently, and the possibility of re-utilising code already written in a range of other programming languages.
- Grahical objects, such as icons, logos, and images, in a variety of formats including SVG.
The most sophisticated web pages, known as web apps, combine these elements in a complex manner.
03Deployment
From the perspective of server-side website deployment, there are two types of web pages: static and dynamic. Static pages are simply retrieved from the web server's file system and a copy transmitted to the client without any modification. Dynamic pages are created by the server on the fly, before transmission to the client. This often involves retrieving information from a database and placing it into the hypertext, and may involve altering presentation or inclusion of content based upon URL parameters. Dynamic pages often involve use of caching of generated content for efficiency. An example of a dynamic page is a search engine results page.
04Security and privacy
When the web was first invented pages were retrieved using plain HTTP, represented by http:// in a URL. The simple nature of the protocol leaves open the possibility of eavesdropping and man-in-the-middle attacks by third-parties, threatening privacy and security. The HTTPS extension added a layer of encryption, largely mitigating these concerns, though originally this was typically only adopted by the likes of banks and e-commerce sites. Later, HTTPS became more broadly adopted, ultimately reaching a point where major browsers started automatically making HTTPS requests instead of HTTP for HTTP-based links, warning users in cases where websites still did not support HTTPS and requiring user confirmation before proceeding.
Another modern security feature of websites and web browsers is Content Security Policy, which helps protect against cross-site scripting attacks.
Sources and credits
This article is adapted from the Wikipedia article “Web page”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Images, from Wikimedia Commons:
- Platypus article on Vector 2022.png by Screenshot by AHollender (WMF), CC BY-SA 4.0
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.