WebsitesModule 1: The web, explainedLesson 2 of 15
Course progress7%

15 min lesson · Updated August 2026

How does a website reach your screen?

When you open a web address, the browser resolves the domain through DNS, connects securely to a server, sends an HTTP request, receives resources and turns them into the page you see.

What you will learn

By the end, you will understand:

  • Follow domain, DNS, server and browser roles
  • Understand request, response, status and HTTPS concepts
  • Recognize caching and delivery layers without treating them as magic

Visual explainer

See the idea clearly.

The journey begins with a URL

  1. 01

    Read scheme/domain/path

  2. 02

    Check browser/cache

  3. 03

    Resolve domain through DNS

  4. 04

    Connect to server address

  5. 05

    Negotiate secure HTTPS

  6. 06

    Send HTTP request

  7. 07

    Receive status/headers/body

  8. 08

    Request linked resources

  9. 09

    Render and run allowed behavior

DNS is a directory system

People remember domain names; networks route using addresses. DNS records help the browser find the service responsible for the domain.

DNS changes can take time to be observed because resolvers cache records. A domain registration and hosting account are different things.

The server answers requests

ResponseMeaning
200The requested resource was successfully returned.
301/308A permanent redirect points to another address.
302/307A temporary redirect.
404The resource was not found.
500 familyThe server could not complete the request normally.

HTTPS protects transport

HTTPS uses TLS to authenticate the server connection and encrypt data in transit. It helps prevent nearby parties from reading or altering requests.

HTTPS does not prove the business is honest, the page has no malicious code or stored data is secure. Certificate warnings must not be ignored.

Browsers build the result

HTML describes content/structure, CSS controls presentation and JavaScript can add behavior. The browser fetches these and other resources, creates internal models and paints pixels.

Different browsers and devices can expose implementation assumptions, so testing should not rely on one screen.

Caches and CDNs change the route

Caches reuse stored responses to reduce time and server work. A content delivery network can serve copies closer to users and absorb traffic.

Caching must be configured so private or newly changed content is not incorrectly reused. Purging a CDN does not always clear every browser cache.

Real-world example

Example: a domain works but one page does not

Example

DNS resolves and the server answers, so the home page loads. A product link requests an old path and receives 404. The problem is not “the internet”; it is the missing resource or redirect at that URL.

Try this

Read an address and response

Open browser developer tools for a public page. Identify scheme, domain and path; reload, find the main document request and record its status, content type and whether it came from cache.

Common questions

Questions beginners ask.

What is DNS?

The distributed naming system that helps map domains and service records to network destinations.

What is hosting?

Computing/storage infrastructure that serves website resources and applications.

What is a server?

Software and hardware that receive requests and return resources or results.

What is HTTP?

The web protocol used for requests and responses between clients and servers.

What is HTTPS?

HTTP carried over an authenticated encrypted TLS connection.

What is a status code?

A number in an HTTP response indicating the general result of the request.

What is a CDN?

A distributed delivery network that can serve cached resources closer to users and provide other traffic controls.

Why can a site work for one person but not another?

DNS/cache, location, device, browser, network, consent, account state or staged deployment can differ.

Assessment

Check what you understood.

5 questions · instant explanations

1. What does DNS help a browser find?
2. What does a 404 mean?
3. What does HTTPS primarily protect?
4. Why use caching?
5. True or false: owning a domain automatically includes website hosting.

Sources

Primary references.