Preview Part H: Internet and Web · Chapter 29 · 29 min read · 95 practice questions
After this chapter you will be able to
explain the WWW and how a web page loads
break a URL into its parts and classify domain names
describe DNS resolution
compare browsers and search engines
explain cookies, cache, HTTP status codes and other web terms
write and read basic HTML tags; know CSS, JavaScript and XML roles
Chapter 29 at a glanceChapter 29 at a glance. Recall who built the Web, how URL and DNS work, the status-code families, the main browsers and search engines, and basic HTML tags.
29.1 The World Wide Web
The World Wide Web (WWW / W3 / the Web) is a system of interlinked hypertext documents (web pages) accessed through the Internet using browsers and the HTTP protocol.
Invented by Tim Berners-Lee at CERN (Switzerland): proposed in March 1989, first web server and browser in 1990, opened to the public in 1991.
First website: info.cern.ch.
First browser: WorldWideWeb (later renamed Nexus).
The three building blocks Berners-Lee created: HTML, HTTP and URL.
Robert Cailliau was Berners-Lee’s main collaborator on the Web at CERN.
⚠ COMMON CONFUSION — Internet ≠ WWW. The Internet is the network (1969 onward); the Web is one service on it (1989–91), like email and FTP are other services.
29.2 How a Web Page Loads
Request and response The browser (client) sends a request; the web server sends back a response with a status code and the page. HTTP forgets each exchange, which is why cookies are needed.Status codes: the first digitMemory hook: the first digit of an HTTP status code gives the family. 2 = success, 3 = redirect, 4 = the client's fault, 5 = the server's fault.FigureHow a Web Page Loads
Type URL
Check browser cache
DNS lookuproot → TLD (.in) → authoritative server → IP address
TCP connection+ TLS handshake for HTTPS
HTTP GET request
Server responds200 OK + HTML
Fetch CSS, JS, images
Render page
You type a URL in the browser’s address bar.
The browser asks DNS for the server’s IP address.
It connects to the web server (TCP; plus TLS encryption for HTTPS).
It sends an HTTP request; the server sends an HTTP response with the page.
The browser renders HTML, CSS and JavaScript into the page you see.
HTTP Methods
Method
Purpose
GET
Request a page or data
POST
Send data to the server (e.g., a login or form submit)
PUT
Create or fully replace a resource on the server
PATCH
Change part of a resource
DELETE
Remove a resource
HTTP = Hypertext Transfer Protocol; HTTPS = HTTP Secure (encrypted with SSL/TLS).
With GET, data appears in the URL; with POST, data travels in the body of the request.
HTTP has two message types: a request (sent by the client, with a request line, headers and sometimes a body) and a response (sent by the server, with a status line, headers and sometimes a body).
What the full chapter covers
The full chapter has these sections:
29.1 The World Wide Web
29.2 How a Web Page Loads
29.3 URL — Uniform Resource Locator
29.4 Domain Names and DNS
29.5 Web Terminology
29.6 Web Browsers
29.7 Search Engines
29.8 HTML and Web Languages
29.9 Web 1.0, 2.0 and 3.0
29.10 Most-Asked Browser Shortcuts
Chapter Quick Revision
Most Important Terms
Common Confusions
Rapid Recall
Sample questions from this chapter
1. Browser that first introduced the omnibox?
Safari
Opera
Mozilla Firefox
Google Chrome
Show answer
Answer: D. Google Chrome
Google Chrome first introduced the omnibox, one bar for both address and search.
2. Feed format listing a site's latest updates?
CTA
SEM
RSS
Applet
Show answer
Answer: C. RSS
RSS (Really Simple Syndication) is a feed format that lists a site's latest updates.
3. What does a CDN do?
Caches content on servers near users
Blocks all cookies
Encrypts all e-mail
Assigns IP addresses to users
Show answer
Answer: A. Caches content on servers near users
A CDN keeps cached copies of content on servers spread across places, so pages load faster for nearby users.
4. Another name for a web server?
Host
Client
Router
Browser
Show answer
Answer: A. Host
A web server is also called a host: an Internet-connected computer that provides services.
5. Search engine type that relies on human editors?
Pay-per-click engine
Crawler-based engine
Human-powered directory
Meta-search engine
Show answer
Answer: C. Human-powered directory
A human-powered directory depends on human editors who list and categorise websites.