
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.
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.
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).
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.
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:
The most sophisticated web pages, known as web apps, combine these elements in a complex manner.
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.
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.[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.
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.
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.
A Web page that provides custom content for the user based on the results of a search or some other request.