A website is a collection of related web pages and resources, such as HTML documents, stylesheets, scripts, images and data endpoints, published under a common domain name and delivered to browsers over HTTP or HTTPS. In web architecture, the website is the unit that users experience as one place on the Web, even though behind it may sit a single static folder or a distributed system of servers, databases and edge networks.
The term describes the user-facing whole, not a particular technology. A website can be static or dynamic, built by hand or managed by a content management system, and it may contain interactive features that turn parts of it into a web application.
How a website is delivered to the browser
Every visit starts when the browser resolves the domain name through DNS to an IP address, opens a connection, negotiates TLS encryption and sends an HTTP request for a URL. The server, or a content delivery network in front of it, answers with an HTML document, which the browser parses before requesting the stylesheets, scripts, fonts and images it references.
The browser then builds the Document Object Model, applies CSS, executes JavaScript and paints the page. Navigation to another page repeats the cycle, although caching and connection reuse make later requests much faster. The quality of a website therefore depends as much on delivery as on content.
The following table describes the layers involved in serving a typical website.
| Layer | What it does | Typical technologies |
|---|---|---|
| Domain and DNS | Maps the name to server addresses | Registrar, authoritative DNS |
| Transport and security | Encrypts and carries requests | HTTPS, TLS 1.3, HTTP/2 or HTTP/3 |
| Edge delivery | Caches and serves content near users | Content delivery network |
| Frontend | Structure, presentation and behavior | HTML, CSS, JavaScript |
| Backend | Business logic and page generation | Node.js, Django, Laravel, ASP.NET Core |
| Data storage | Persists content and user data | Relational or document databases |
Static, dynamic and hybrid websites
Websites differ mainly in when their pages are generated. A static website consists of prebuilt files that the server returns unchanged, while a dynamic website builds each page on request from templates and a database. Hybrid approaches, such as Jamstack sites with serverless functions or edge rendering, combine prebuilt pages with selected dynamic parts.
The comparison below shows how these models trade speed, flexibility and operational effort.
| Model | When pages are built | Strength | Limitation |
|---|---|---|---|
| Static website | At build or deploy time | Fast, cheap and secure | Changes require a rebuild |
| Dynamic website | On every request | Personalized and always current | Needs servers and caching |
| Jamstack hybrid | Build time plus API calls | Static speed with dynamic features | Logic spread across services |
| Edge-rendered website | On request at edge locations | Low latency worldwide | Runtime limits and vendor coupling |
Many real sites are dynamic underneath but behave as static ones for most visitors, because full-page caching stores generated HTML. The architectural question is therefore less about the label and more about how much content must be computed per request.
Website versus web application and related terms
The boundary between a website and a web application is a matter of emphasis rather than strict definition. A website is primarily for publishing and reading information, while a web application is primarily for performing tasks with stored state, such as banking, editing documents or managing orders. Most modern websites contain some application features, and most web applications include informational pages.
The table clarifies neighboring concepts that are often used loosely.
| Term | Meaning | Relation to a website |
|---|---|---|
| Web page | One document at one URL | A website contains many pages |
| Web application | Interactive software in the browser | May be part of or the whole website |
| Domain | A registered name in DNS | Address under which a website lives |
| Web server | Software that answers HTTP requests | Infrastructure that serves the website |
| Content management system | Tool for editing and publishing content | Common way to run a website |
Architectural choices when building a website
Architecture should follow content volume, update frequency, interactivity and team skills. A small brochure site with occasional edits fits a static generator or a hosted builder, while a newsroom publishing hourly needs a content management system, and a store with accounts needs a backend framework or a headless CMS with a separate frontend.
The decision table below matches common situations to a sensible starting architecture.
| Situation | Recommended approach | Reason |
|---|---|---|
| Portfolio or documentation | Static site generator | Minimal hosting and attack surface |
| Frequently updated editorial site | Traditional content management system | Editors work without developers |
| Multichannel content for apps and web | Headless CMS with a web framework | One content source, many frontends |
| Online store with accounts | Backend framework or commerce platform | Transactions and user state |
| Large organization with many teams | Micro-frontends or separate subsites | Independent releases per team |
Regardless of the stack, sound practice favors progressive enhancement: core content and navigation should work as plain HTML, with JavaScript adding improvements. This keeps the website accessible, indexable and resilient when scripts fail or load slowly.
Quality attributes and common website failures
A well-architected website is judged by performance, accessibility, security, discoverability and maintainability. Performance is commonly measured with Core Web Vitals, accessibility against WCAG 2.2 success criteria, and security through HTTPS, timely patching and sensible HTTP security headers.
- Oversized JavaScript bundles delay interactivity, especially on mid-range phones.
- Missing HTTPS or expired certificates trigger browser warnings that drive visitors away.
- Broken links and unmanaged redirects waste search engine crawl effort and frustrate users.
- Unpatched software and plugins remain the most common route to compromise.
- No backups or monitoring turn a minor incident into prolonged downtime.
A common misconception is that launching a website finishes the work. In reality a website is a living system that needs ongoing care: content audits, dependency updates, certificate renewal and performance budgets keep it fast and trustworthy over years.
A plain-language summary
A website is a group of pages that belong together and sit at one address, such as the name you type into the browser. When you visit, your browser asks a distant computer for the pages and then puts the text, pictures and buttons together on your screen.
It works a little like a shop with a street address. The address is the domain, the shelves are the pages, and the staff in the back room are the servers that fetch what you ask for. Keeping the shop tidy and secure is a continuous job.
An example from practice
A family-owned bakery with three locations wants a website showing opening hours, a seasonal menu and a form for cake orders. The developer chooses a static site generator for the informational pages, hosts the files on a content delivery network and adds one small serverless function that emails each order to the shop.
The owner edits menu text in simple Markdown files, and every change triggers an automatic rebuild that takes under a minute. Hosting costs stay close to zero, pages load in well under two seconds on mobile networks, and because no database or admin panel is exposed, the site has a very small attack surface to maintain.