Ez Computerहिन्दीOpen app

World Wide Web, Browsers and Web Technologies

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
Web & Browsers WWW & history Tim Berners-Lee Internet ≠ WWW Web 2.0 = read-write URL & DNS URL = web address DNS: name → IP .in = India HTTP & status GET asks, POST sends 2xx = success 404 = Not Found Browsers Mosaic (1993) Chrome (2008) Cache = saved copies Search engines Archie (1990) first Google (1998) Crawl → index → rank HTML & web tech <a> = link CSS = styling JS = interactivity
Chapter 29 at a glance Chapter 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.

⚠ 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

Client (browser) Web server Request GET /page.html Response HTTP/1.1 200 OK Request: browser asks for a page (GET) Response: status code + HTML page HTTP alone forgets each exchange
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.
First digit tells the family 2 Success 200 OK 201 Created 3 Redirect 301 / 302 4 Your fault 400, 401 403, 404 5 Our fault 500 / 503
Status codes: the first digit Memory 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
  1. Type URL
  2. Check browser cache
  3. DNS lookuproot → TLD (.in) → authoritative server → IP address
  4. TCP connection+ TLS handshake for HTTPS
  5. HTTP GET request
  6. Server responds200 OK + HTML
  7. Fetch CSS, JS, images
  8. Render page
  1. You type a URL in the browser’s address bar.
  2. The browser asks DNS for the server’s IP address.
  3. It connects to the web server (TCP; plus TLS encryption for HTTPS).
  4. It sends an HTTP request; the server sends an HTTP response with the page.
  5. 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

What the full chapter covers

The full chapter has these sections:

  1. 29.1 The World Wide Web
  2. 29.2 How a Web Page Loads
  3. 29.3 URL — Uniform Resource Locator
  4. 29.4 Domain Names and DNS
  5. 29.5 Web Terminology
  6. 29.6 Web Browsers
  7. 29.7 Search Engines
  8. 29.8 HTML and Web Languages
  9. 29.9 Web 1.0, 2.0 and 3.0
  10. 29.10 Most-Asked Browser Shortcuts
  11. Chapter Quick Revision
  12. Most Important Terms
  13. Common Confusions
  14. Rapid Recall

Sample questions from this chapter

1. Browser that first introduced the omnibox?

  1. Safari
  2. Opera
  3. Mozilla Firefox
  4. 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?

  1. CTA
  2. SEM
  3. RSS
  4. 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?

  1. Caches content on servers near users
  2. Blocks all cookies
  3. Encrypts all e-mail
  4. 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?

  1. Host
  2. Client
  3. Router
  4. 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?

  1. Pay-per-click engine
  2. Crawler-based engine
  3. Human-powered directory
  4. Meta-search engine
Show answer

Answer: C. Human-powered directory

A human-powered directory depends on human editors who list and categorise websites.