Web page

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.[1] 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.
Navigation
[edit source]Each accessible webpage has a unique web address (URL) facilitating access. When supplied with a URL, applications access the page by programmatic submission of an HTTP request to the web server that hosts the page. Typically this server is identified by taking the website domain name from the URL and performing a DNS lookup, though in some cases the URL may directly specify the server IP address. In response, the web server will transmit back to the application a copy of the requested page resource, consisting of a block of hypertext. Some applications might simply save the returned resource for later use (for example, wget). A web browser instead processes this hypertext, producing an interactive visual representation to the user. The hypertext may include references to additional resources such as scripts or graphics elements required by the page, each themselves identified and accessible by unique URLs. During processing of the hypertext, such references to additional resources will be identified and the resources retrieved.[2]
The presented page may include one or more hyperlinks which can be clicked or tapped on to navigate to a different page, either within the same website or of a different one. The initial URL accessed may be specified to an application either manually (such as typing into the address bar of a browser), or automatically, such as by clicking on an entry saved within history or bookmark features of a browser, or using some other form of shortcut or hyperlink presented within an application (e.g. a link presented in an email, or a link in an application help dialog).[2]
Webpages can typically be saved to user storage, from which they can later be accessed via storage file paths rather than public URLs, though some interactive page functionality may be broken or additional resources missing.
Elements
[edit source]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).[3]
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.[3]
- JavaScript, which enables a wide range of behavior, including expanding interactivity, and dynamic retrieval of additional content.[3] The vast majority of webpages reportedly include javascript elements.[4]
- 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.[5]
- 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.
Deployment
[edit source]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.[6] 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.[7] Dynamic pages often involve use of caching of generated content for efficiency. An example of a dynamic page is a search engine results page.
Security and privacy
[edit source]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.[8] The HTTPS extension added a layer of encryption, largely mitigating these concerns,[8] though originally this was typically only adopted by the likes of banks and e-commerce sites.[citation needed] 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.[citation needed]
Another modern security feature of websites and web browsers is Content Security Policy, which helps protect against cross-site scripting attacks.[9]
See also
[edit source]References
[edit source]- ↑ "Web page – definition of web page by The Free Dictionary". Archived from the original on 23 April 2021. Retrieved 7 September 2026.
- 1 2 "Behind the scenes of modern web browsers". Tali Garsiel. Archived from the original on 18 April 2018. Retrieved 21 April 2018.
- 1 2 3 Flanagan, David (18 April 2011). JavaScript: the definitive guide. Beijing; Farnham: O'Reilly. p. 1. ISBN 978-1-4493-9385-4. OCLC 686709345.
JavaScript is part of the triad of technologies that all Web developers must learn: HTML to specify the content of web pages, CSS to specify the presentation of web pages, and JavaScript to specify the behaviour of web pages.
- ↑ "Usage Statistics of JavaScript as Client-side Programming Language on Websites". W3Techs. Retrieved 27 February 2024.
- ↑ "The State of WebAssembly 2023". Scott Logic. 18 October 2023. Retrieved 18 April 2024.
- ↑ Melendez, Steven (10 August 2018). "The Difference Between Dynamic & Static Web Pages". Chron. Archived from the original 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 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.
- 1 2 "Why use HTTPS?". Cloudflare. Retrieved 22 October 2025.
- ↑ "Content Security Policy (CSP) - HTTP". MDN Web Docs. 30 June 2025. Retrieved 9 October 2025.