Web browser

Also known as: browser

On this page 7

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.

StageInputOutput
HTML parsingHTML bytesDOM tree
CSS parsingStylesheetsCSSOM
Style calculationDOM and CSSOMComputed styles per element
LayoutStyled elementsGeometry of every box
PaintLayout treeDrawing instructions in layers
CompositingPainted layersFinal frame on the GPU
Main stages of page rendering

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 familyRendering engineJavaScript engineNotes
Chrome, Edge, Opera, BraveBlinkV8Built on the Chromium project
SafariWebKitJavaScriptCoreRequired for all iOS browsers in most regions
FirefoxGeckoSpiderMonkeyIndependent engine developed by Mozilla
Experimental projectsServoVariesParallel engine written in Rust
Major browser engines

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.

MechanismWhat it doesThreat addressed
Same-origin policyRestricts cross-origin data accessData theft between sites
Browser sandboxLimits renderer access to the operating systemMalware from exploited pages
Site isolationPlaces each site in its own processSpeculative execution attacks
Mixed content blockingBlocks insecure resources on HTTPS pagesTraffic tampering
Content Security PolicyRestricts allowed script sourcesCross-site scripting
Permission promptsGates camera, location and notificationsSilent device access
Key browser security mechanisms

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.

SituationRecommended approachReason
Public consumer websiteSupport current and previous major versionsCovers nearly all visitors
New CSS or API featureUse progressive enhancementOlder browsers still get core content
Enterprise legacy applicationUse a managed compatibility modeAvoids blocking critical tools
Security-sensitive environmentEnforce automatic updates by policyPatches arrive within days
Rendering bug in one engineTest across all three enginesBugs are often engine-specific
Common decisions about browser support

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.