Billions of people visit websites every day, but very few people understand what actually happens when they type a URL into their browser. This guide explains exactly what a website is and how it works — from the moment you click a link to the moment a page appears on your screen.
The Basic Building Blocks of a Website
Every website is built from three core technologies:
- HTML (HyperText Markup Language) — Defines the structure and content of a page (headings, paragraphs, links, images).
- CSS (Cascading Style Sheets) — Controls the visual appearance (colours, fonts, layout, spacing).
- JavaScript — Adds interactivity (menus, forms, animations, dynamic content).
What Happens When You Visit a Website
- You type a URL — e.g.
https://websiteguide.net - DNS lookup — Your browser translates the domain name into an IP address using DNS.
- Browser connects to the server — A TCP/IP connection is established to the web server at that IP address.
- Browser sends an HTTP request — It asks the server for the page you want.
- Server sends a response — The server returns HTML, status code and headers.
- Browser renders the page — The HTML is parsed, CSS is applied, JavaScript runs and the page is displayed.
Types of Websites
- Static websites — Fixed HTML files that look the same for every visitor. Fast and simple.
- Dynamic websites — Content generated on-the-fly from a database (blogs, e-commerce, social media).
- Web applications — Interactive tools where users take actions (Gmail, online banking, Google Docs).
What Every Website Needs
- Domain name — The address users type to reach you (e.g.
example.com). - Web hosting — A server where your files are stored and served to visitors.
- SSL certificate — Enables HTTPS and encrypts data between the server and visitor's browser.
- Content — HTML pages with text, images and other media.
Website vs Web Application
A website primarily delivers content for users to read (news sites, blogs, company pages). A web application is interactive and allows users to perform tasks — booking tickets, sending messages, managing files. The line between them is blurry; most modern websites are a mixture of both.
How Big Is a Website?
A website can be a single page (a landing page) or millions of pages (Wikipedia, Amazon). What matters is that all pages are connected under the same domain and share a common purpose or identity.