A web browser is client software that retrieves resources from the web, interprets HTML, CSS and JavaScript, and renders them as interactive pages on a screen. Among browser technologies it is the central component: it implements networking protocols, a rendering engine, a JavaScript engine and a security model that keeps one website from reading data that belongs to another.
Modern browsers such as Chrome, Firefox, Safari and Edge are effectively application platforms. They run complex web applications, store data locally, access device features with user permission and update themselves frequently to follow evolving web standards from the W3C and WHATWG.
How a web browser loads and displays a page
When a user enters an address, the browser performs a chain of operations known as navigation. It resolves the domain name through DNS, opens a connection, negotiates TLS encryption for HTTPS, sends an HTTP request and receives the response. The bytes are then handed to the rendering pipeline, which turns markup and styles into pixels.
The rendering pipeline follows the critical rendering path. The table summarizes its main stages and the output each one produces.
| Stage | Input | Output |
|---|---|---|
| HTML parsing | HTML bytes | DOM tree |
| CSS parsing | Stylesheets | CSSOM |
| Style calculation | DOM and CSSOM | Computed styles per element |
| Layout | Styled elements | Geometry of every box |
| Paint | Layout tree | Drawing instructions in layers |
| Compositing | Painted layers | Final frame on the GPU |
JavaScript can modify the DOM at any time, which forces parts of the pipeline to run again. Render-blocking resources, such as synchronous scripts and stylesheets in the document head, delay the first paint, so performance work concentrates on shortening this path.
Core components and engines
A browser consists of several cooperating subsystems. The rendering engine handles HTML and CSS, the JavaScript engine compiles and executes scripts, and the networking stack manages connections, caching and cookies. The user interface, including the address bar, tabs and history, sits on top of these layers.
Only a few engines power almost every browser in use. The table lists the principal engine families.
| Browser family | Rendering engine | JavaScript engine | Notes |
|---|---|---|---|
| Chrome, Edge, Opera, Brave | Blink | V8 | Built on the Chromium project |
| Safari | WebKit | JavaScriptCore | Required for all iOS browsers in most regions |
| Firefox | Gecko | SpiderMonkey | Independent engine developed by Mozilla |
| Experimental projects | Servo | Varies | Parallel engine written in Rust |
This engine concentration has practical effects. Developers test mainly against Blink, WebKit and Gecko, and a feature becomes reliably usable only after all three ship it, a status often called baseline availability.
The browser security model
Because a browser executes untrusted code from any website, security is a foundational design goal. The cornerstone is the same-origin policy: a script may read data only from the origin that served it, where an origin is the combination of scheme, host and port. Controlled exceptions are negotiated with CORS headers.
Several mechanisms reinforce each other. The following table lists the main protections and what they prevent.
| Mechanism | What it does | Threat addressed |
|---|---|---|
| Same-origin policy | Restricts cross-origin data access | Data theft between sites |
| Browser sandbox | Limits renderer access to the operating system | Malware from exploited pages |
| Site isolation | Places each site in its own process | Speculative execution attacks |
| Mixed content blocking | Blocks insecure resources on HTTPS pages | Traffic tampering |
| Content Security Policy | Restricts allowed script sources | Cross-site scripting |
| Permission prompts | Gates camera, location and notifications | Silent device access |
Multi-process architecture is central to this model. Renderer processes run with minimal privileges, and a compromised tab cannot directly read files or memory belonging to other sites, at the cost of higher memory consumption per open tab.
Storage, privacy and user features
Browsers keep several kinds of local data to speed up browsing and support web applications. The browser cache stores downloaded resources according to HTTP caching headers, while cookies, localStorage and IndexedDB keep application state. Service workers can intercept requests and enable offline operation.
- Private browsing discards cookies, history and cache when the window closes, but it does not hide activity from networks or websites.
- Browser profiles separate history, extensions and logins for different people or contexts.
- Browser extensions add features through defined APIs and permissions, and malicious ones are a recognized risk.
- Tracking protection partitions or blocks third-party cookies to limit cross-site profiling.
- Reader mode strips page layout to present article text in a clean format.
The user agent string identifies the browser to servers, but because it is easily spoofed and enables fingerprinting, vendors now reduce its detail and recommend feature detection instead.
Choosing and supporting browsers in practice
For developers and organizations, browser choice and support policy affect compatibility, security and cost. Most teams define a support matrix based on audience analytics rather than attempting to support every version ever released.
| Situation | Recommended approach | Reason |
|---|---|---|
| Public consumer website | Support current and previous major versions | Covers nearly all visitors |
| New CSS or API feature | Use progressive enhancement | Older browsers still get core content |
| Enterprise legacy application | Use a managed compatibility mode | Avoids blocking critical tools |
| Security-sensitive environment | Enforce automatic updates by policy | Patches arrive within days |
| Rendering bug in one engine | Test across all three engines | Bugs are often engine-specific |
A common misconception is that a browser and a search engine are the same thing. The browser is the application that displays pages, while the search engine is a website opened inside it. Another frequent error is relying on quirks mode behavior, which appears when a page lacks a proper doctype and leads to inconsistent layout.
The simple explanation
A web browser is the program you open to visit websites. You type an address or click a link, and the browser asks a distant computer for the page, receives text and pictures, and arranges them neatly on your screen.
It works a little like a translator and a security guard at once. It turns code into something readable and keeps each website in its own room, so one site cannot peek at what you do on another.
How it is used in practice
A mid-sized online retailer notices that checkout conversions on mobile Safari are 18 percent lower than on Chrome. The front-end team reproduces the problem across Blink, WebKit and Gecko and finds that a newer CSS layout feature used in the payment form is not supported by an older Safari version still common among their customers.
The team adds progressive enhancement: a simpler fallback layout for browsers without the feature, detected with a CSS support query. They also defer a render-blocking analytics script so the first paint happens sooner. Within two weeks, mobile Safari conversion rises to match other browsers, and the checkout works reliably regardless of which engine renders it.