Introduction to Web Pages and Websites

What is a Web Page

A web page is defined as a single document on the Internet, similar to a single page in a book or one chapter in a magazine. It resides at a unique URL (Uniform Resource Locator) which allows users to access this specific document. The content of a web page can comprise various elements, including text, images, videos, and hyperlinks, all integrated into this single document.

What is a Website

A website is a broader collection of related web pages grouped under a single domain name. Websites facilitate navigation between various web pages through the incorporation of links, which allow users to transition from one page to another within the site. For example, the website stabroeknews.com is a website that encompasses thousands of individual web pages, with content ranging across different subjects such as news, articles, and sports. Thus, you can think of a website as akin to an entire book, where each web page corresponds to a specific chapter within that book.

Components of a Web Page

  • Single Document: A web page represents an individual document.

  • Unique URL: Each web page has its own distinct URL ensuring it can be uniquely identified on the Internet.

  • Content Types: Web pages can include different types of content, which may comprise text, images, videos, and links that connect to other web pages.

  • Example URL: An example of a specific web page is youtube.com/watch?v=dbc123 which denotes a single video within the larger structure of the YouTube website.

Components of a Website

  • Collection of Web Pages: A website consists of many web pages, all under a unified domain name.

  • Shared Domain Name: All pages within a website share the same domain name, facilitating their relationship and navigability.

  • Connected Pages: These web pages link to each other via navigation links for user-friendly browsing.

  • Example Website: An example of a website is youtube.com, which encompasses the entirety of the YouTube platform.

  • Quick Check: The URL youtube.com/watch?v=a refers to a web page that displays just one video, which is a subset of the larger YouTube website.

What is a Web Server

A web server is described as a powerful computer that hosts websites and delivers web pages to users upon request. Key characteristics of a web server include:

  • Always Available: Web servers operate continuously, 24/7, ensuring that websites are always accessible to users.

  • Storage Capabilities: It stores all the necessary files to create web pages, including HTML documents, images, videos, and other code.

  • Request Handling: The web server listens for requests made by users and works to deliver the requested page without delay, ensuring swift responses to user inquiries.

  • Content Delivery: Once a request to view a web page is made, the server locates the correct files and sends the data back over the Internet, allowing the web page to be displayed appropriately.

How a Web Page Loads

  1. Enter URL: The user enters a web address (for example, leg.bbc.co.uk) into their web browser.

  2. Request Sent: The browser sends a request across the Internet to find the corresponding web server hosting the requested page.

  3. Locate Files: The identified web server locates the appropriate files stored on its hardware for the requested web page.

  4. Send Page Data: The server transmits the page data back to the user's browser over the Internet.

  5. Display in Browser: Finally, the browser reads the received code and displays the finished web page for the user to view.