Web application

Also known as: web app

On this page 7

A web application, often shortened to web app, is interactive software that runs in a web browser and communicates with one or more servers over HTTP or HTTPS, so users can create, change and retrieve data without installing a native program. Web applications differ from static websites because their output depends on user input, application state and stored data, not only on fixed documents.

In the field of the Web, the term covers everything from a simple booking form to complex products such as office suites, banking portals and design tools. Every web application combines a client tier that renders the interface, a server tier that enforces business rules and a data tier that persists information.

How a web application processes a request

A web application works through a request and response cycle: the browser sends an HTTP request, the server runs application code, and the response returns either a complete HTML page or structured data such as JSON that client-side JavaScript turns into interface updates. The browser keeps no permanent connection by default, so the application must carry state explicitly through cookies, tokens or server sessions.

Modern web applications usually split responsibilities into distinct layers. The table below summarizes the main components and the role each one plays.

ComponentTypical technologiesResponsibility
Client interfaceHTML, CSS, JavaScript, a UI frameworkRendering views and handling user events
Application serverNode.js, Java, Python, PHP, .NETBusiness logic, validation, authorization
API layerREST, GraphQL, WebSocketContract between client and server
Data storeRelational or document databases, cachesDurable storage and fast retrieval
Delivery networkReverse proxy, CDN, load balancerCaching, TLS termination, traffic distribution
Core components of a web application

The browser security model shapes this architecture. The same-origin policy isolates data between sites, Cross-Origin Resource Sharing relaxes that isolation under controlled rules, and Content Security Policy limits which scripts may run. A web application that ignores these mechanisms is exposed to cross-site scripting and request forgery.

Rendering strategies for web applications

The rendering strategy decides where HTML is produced and therefore how quickly content appears, how well search engines index it and how much work the device must do. Teams choose among several established models, often mixing them within one product.

ModelWhere HTML is builtStrengthWeakness
Multi-page application (MPA)Server, per navigationSimple, indexable, robustFull reload on each page
Single-page application (SPA)Browser, after JavaScript loadsFluid, app-like interactionHeavy initial bundle, weaker first paint
Server-side rendering (SSR)Server, then hydrated in browserFast first content, good indexingServer cost, hydration overhead
Static site generation (SSG)At build timeVery fast, cheap to hostStale until the next build
Islands architectureMostly static, interactive parts hydratedMinimal JavaScript shippedMore complex mental model
Main rendering models and their trade-offs

Frameworks such as React, Vue.js, Angular and Svelte provide the component model, while meta-frameworks such as Next.js, Nuxt, SvelteKit, Remix and Astro add routing, data loading and hybrid rendering. The decisive question is not which model is best in general but which pages need interactivity and which need speed and indexability.

Web applications compared with other software types

A web application sits between a static website and a native application: it is more dynamic than the first and more portable than the second. A progressive web app (PWA) narrows the gap further by adding offline caching through a service worker, installability and push notifications.

PropertyStatic websiteWeb applicationNative application
InstallationNoneNone, optional with PWARequired from a store or installer
ContentFixed documentsGenerated from data and inputGenerated locally and remotely
UpdatesPublish new filesDeploy server and assets onceEach device must update
Device accessMinimalLimited by browser APIsFull platform APIs
Offline useRarelyPossible with service workersNative by default
Web application versus related software types

The main advantage of the web model is instant, universal distribution: one deployment reaches every user on every platform with a standards-compliant browser. The main cost is dependence on browser capabilities and network quality, which still restricts hardware access, background processing and performance-critical workloads, although technologies such as WebAssembly and WebGPU continue to reduce that gap.

Designing and operating a web application

Building a reliable web application requires decisions about architecture, state, security and performance before the first feature ships. The following choices have the largest long-term effect.

DecisionCommon optionsGuidance
State managementServer sessions, client stores, URL stateKeep the source of truth on the server
AuthenticationSession cookies, OAuth 2.0, OpenID ConnectUse HttpOnly, Secure, SameSite cookies
Data fetchingREST, GraphQL, server actionsMatch the API to client needs
Performance budgetBundle limits, Core Web Vitals targetsMeasure on mid-range mobile devices
DeploymentContainers, serverless, edge functionsAutomate builds and rollbacks
Key design decisions

Performance is usually judged through Core Web Vitals: Largest Contentful Paint should stay under 2.5 seconds, Interaction to Next Paint under 200 milliseconds and Cumulative Layout Shift below 0.1 for most visits. Accessibility follows the WCAG guidelines, which require keyboard operation, sufficient contrast and meaningful semantics, and it should be tested continuously rather than audited once.

Security risks and common mistakes

Because a web application is reachable by anyone on the network, every input must be treated as untrusted. The OWASP Top 10 lists the most frequent weaknesses, and several of them stem from predictable design errors.

  • Trusting client-side validation: browser checks improve usability, but the server must validate every request again.
  • Broken access control: hiding a button does not protect an endpoint; authorization belongs on the server for each resource.
  • Injection flaws: building SQL or shell commands from strings invites attacks; use parameterized queries.
  • Oversized JavaScript bundles: shipping megabytes of code delays interaction on slower phones and networks.
  • Leaking secrets to the client: API keys embedded in frontend code are public to every visitor.

A frequent misconception holds that a framework makes an application secure by default. Frameworks escape output and offer safe patterns, yet misconfiguration, outdated dependencies and missing authorization checks remain the responsibility of the team that operates the application.

A plain-language summary

A web application is a program you use inside your browser instead of installing it on your computer or phone. You open an address, sign in and work, and the program remembers your data on a server somewhere else.

Think of a restaurant. The browser is the dining room where you see the menu and place your order, the server is the kitchen that prepares what you asked for, and the database is the pantry where ingredients are stored. You never enter the kitchen, but every meal comes from it. That is why the same web app works on any device with a modern browser and an internet connection.

An example from practice

A regional clinic network replaces paper appointment books with a web application that patients and staff open in any browser. Patients choose a doctor, see free slots and book a visit; receptionists see the same calendar update within about a second because the server pushes changes over a WebSocket connection.

The team renders the public pages with server-side rendering so they load quickly and appear in search results, while the staff dashboard runs as a single-page application behind login. Session cookies are HttpOnly and SameSite, and every booking request is checked on the server against the patient account. After launch, phone calls for routine bookings fall noticeably, and updates reach all clinics with a single deployment instead of reinstalling software on each workstation.