A web app (web application) is software that runs on a server and that you use through a web browser. You don't install it. You open a URL, sign in, and work with it: you create, edit, save and share data.

Gmail, Google Docs, Trello, Figma and the browser versions of Microsoft 365 are all web apps. They respond to what you do, store your data and behave like desktop software, but they are delivered over HTTP. Under the hood each one has the same parts: a client in the browser, a server running your code, a database, and APIs that connect them. Once you can see those parts, you can build one, and the second half of this article does exactly that with ASP.NET Core.

What separates a web app from a web page

A web app does work on your behalf. It validates input, runs business rules, reads and writes data, and returns results that are specific to you. Here's a quick test: if two signed-in users see different content because of their own data and actions, you are almost certainly looking at a web app.

Most web apps share a handful of traits. They accept input through forms, editors, uploads or drag and drop. They keep state, so your data is there when you come back. They know who you are and what you're allowed to do. And they run logic on a server, where pricing, search, notifications and payments happen in code you never see. All of it needs nothing more than a modern browser.

What happens when you click Save

A web app is split into tiers. The browser shows the interface, the server runs the logic and the database stores the data. They talk over HTTP, usually through an API that exchanges JSON. Here is one round trip:

Code
You click "Save" in the browser (client)
        ↓
Browser sends an HTTPS request:  POST /api/notes  { "text": "Buy milk" }
        ↓
Web server receives it (ASP.NET Core, Node.js, Django, ...)
        ↓
Application code validates input and checks permissions
        ↓
Database query:  INSERT INTO Notes ...
        ↓
Database confirms the write and returns the new row
        ↓
Server sends an HTTP response:  201 Created  { "id": 42, "text": "Buy milk" }
        ↓
Browser updates the page without a full reload

The client is everything that runs in the browser: HTML for structure, CSS for layout and style, and JavaScript (or WebAssembly) for behavior. In a modern app it is often a full application in its own right, built with React, Angular, Vue or Blazor.

The server receives requests, runs your code and sends responses. Authentication, authorization, validation, business rules and calls to other services all live here. ASP.NET Core, Node.js (Express, NestJS), Python (Django, FastAPI), Java (Spring Boot), PHP (Laravel) and Go are common choices.

The database holds data that must survive restarts. Relational databases such as SQL Server, PostgreSQL and MySQL suit most business apps, document stores like MongoDB or Azure Cosmos DB suit flexible, schema-light data, and a cache like Redis often sits in front to speed up hot reads.

The API is the contract between client and server. Most web apps use REST endpoints that return JSON. Some use GraphQL, gRPC (mostly service to service), or WebSockets and SignalR for real-time updates such as chat and live dashboards.

Around those four you'll soon meet a CDN for static assets, an identity provider such as Microsoft Entra ID, Auth0, Keycloak or ASP.NET Core Identity for sign-in, background workers for slow jobs like emails and exports, and logging and monitoring so you know when something breaks.

Web app, website, native app or PWA?

These terms overlap, which is why people mix them up. The practical differences:

Aspect

Website

Web app

Native / mobile app

PWA

Main purpose

Publish information

Let users do tasks with their data

Deep device features, top performance

Web app that can be installed and work offline

Interaction

Mostly reading

Heavy: forms, editing, workflows

Heavy

Heavy

Install

None

None

App store or installer

Optional, from the browser

Runs on

Any browser

Any browser

One OS per build (iOS, Android, Windows)

Any modern browser

Updates

Instant on deploy

Instant on deploy

Through store releases

Instant, cached by a service worker

Offline

No

Usually no

Yes

Yes, if designed for it

Device access

Minimal

Browser APIs only

Full

Browser APIs, plus install and some OS integration

Example

A company "About us" site

Gmail, Trello, online banking

Mobile banking app, camera app

An installable notes or news app

The line between website and web app is a spectrum. A blog is a website. Add accounts, comments, bookmarks and a writing editor, and parts of it become a web app. Many products are both: the marketing pages are a website and the signed-in area is a web app.

A PWA is not a separate technology. It is a web app that adds a web app manifest, a service worker and HTTPS so it can be installed and keep working on a bad connection, caching its interface and data and queueing changes until the network returns. None of that happens by default; you have to design it. If offline matters to you, read up on saving user changes when the network fails before you write the service worker.

Where the HTML gets built: MPA, SPA and SSR

The "type" of a web app mostly describes where the HTML is built and how navigation works.

In a multi-page application (MPA), every click requests a new HTML page from the server. This is the classic model behind ASP.NET Core MVC, Razor Pages, Django and Laravel. It suits content, forms and admin panels, and it is good for SEO, but full page reloads feel slower on highly interactive screens.

In a single-page application (SPA), the browser loads one HTML shell and a JavaScript bundle. From then on the client renders views itself and calls JSON APIs. React, Angular, Vue and Blazor WebAssembly apps often work this way. SPAs shine for dashboards, editors and tools where users stay for a long session. The price is a bigger initial download and extra work to make client-side routing friendly to search engines and accessible.

With server-side rendering (SSR), the server renders HTML for the first request so the page appears fast and is easy for search engines to read. The client then "hydrates" that HTML and takes over interactivity. Next.js, Nuxt, SvelteKit and Blazor Web Apps all mix the two. Blazor in .NET 8 and later lets you choose a render mode per component: static server rendering, interactive server (UI events over a SignalR connection), interactive WebAssembly (runs in the browser), or interactive auto (starts on the server and switches to WebAssembly once it has downloaded).

Any of these can also become a PWA by adding a manifest and a service worker.

Type

Where HTML is built

Best fit

MPA

Server, every request

Forms, CRUD, content, line-of-business apps

SPA

Browser

Rich tools, long sessions, app-like UX

SSR / hybrid

Server first, then browser

Public apps that need both SEO and interactivity

PWA

Any of the above

Apps used on the go or on flaky networks

Picking a stack

There is no single best stack. Choose by your team's skills, the type of app, where you'll host it, and who will maintain it in three years.

Stack

Language

Strengths

Consider it when

ASP.NET Core (Minimal APIs, MVC, Razor Pages)

C#

Fast, typed, mature tooling, strong security features, cross-platform

Business apps, APIs, teams that know .NET

Blazor

C#

Full-stack C#, shared models, server or WebAssembly rendering

You want interactive UI without a separate JavaScript framework

React / Next.js

JavaScript / TypeScript

Huge ecosystem, SSR and static generation, large hiring pool

Public, SEO-sensitive apps and rich front ends

Angular

TypeScript

Opinionated, batteries included

Large enterprise front ends with many teams

Node.js (Express, NestJS)

JavaScript / TypeScript

One language front to back, good for I/O-heavy APIs

Teams already strong in JavaScript

Django / FastAPI

Python

Productive, close to data science and AI libraries

Data-heavy or ML-backed apps

Laravel

PHP

Fast to build, cheap hosting

Small to mid-size apps and agencies

A sensible default is a React or Next.js front end with an ASP.NET Core API, or a single Blazor Web App if the whole team writes C#. Blazor is also a good first web app if you already know C#, because the UI and the server code live in one language and one project. If you plan to work mainly on front ends, learning plain HTML, CSS and JavaScript first still pays off.

On the .NET side, the version question is simple as of October 2026. .NET 10 is the current Long Term Support release, supported until November 14, 2028, while .NET 8 and .NET 9 both reach end of support on November 10, 2026. Start new projects on .NET 10.

Build a notes app with ASP.NET Core

You'll build a tiny notes app: an HTML page that talks to a JSON API. It shows every tier from the diagram above in about 60 lines of code. Data lives in memory to keep the example focused; a database comes next.

1. Install the SDK and create a project

Download the .NET 10 SDK from dotnet.microsoft.com, check it, and create an empty web project. The web template gives you an ASP.NET Core app with a single Program.cs.

Bash
dotnet --version
dotnet new web -o NotesApp
cd NotesApp

2. Write the server and API

Replace Program.cs with this:

C#
using System.Collections.Concurrent;

var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();

app.UseDefaultFiles();   // "/" serves wwwroot/index.html
app.UseStaticFiles();    // serves files from wwwroot

// In-memory store. Replace with a database (EF Core) for real use.
var notes = new ConcurrentDictionary<int, Note>();
var nextId = 0;

app.MapGet("/api/notes", () => notes.Values.OrderBy(n => n.Id));

app.MapPost("/api/notes", (NoteInput input) =>
{
    if (string.IsNullOrWhiteSpace(input.Text))
        return Results.BadRequest("Text is required.");

    var note = new Note(Interlocked.Increment(ref nextId), input.Text.Trim(), DateTime.UtcNow);
    notes[note.Id] = note;
    return Results.Created($"/api/notes/{note.Id}", note);
});

app.MapDelete("/api/notes/{id:int}", (int id) =>
    notes.TryRemove(id, out _) ? Results.NoContent() : Results.NotFound());

app.Run();

record Note(int Id, string Text, DateTime CreatedUtc);
record NoteInput(string Text);

Three endpoints make a complete API: list, create and delete. ASP.NET Core binds the JSON request body to NoteInput and serializes the Note results to JSON for you.

3. Write the client

Create a folder named wwwroot and add index.html:

HTML / XML
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Notes</title>
</head>
<body>
  <h1>Notes</h1>
  <form id="form">
    <label for="text">New note</label>
    <input id="text" required maxlength="200">
    <button>Add</button>
  </form>
  <ul id="list"></ul>

  <script>
    const list = document.getElementById("list");

    async function load() {
      const res = await fetch("/api/notes");
      const notes = await res.json();
      list.replaceChildren(...notes.map(n => {
        const li = document.createElement("li");
        li.textContent = n.text + " ";          // textContent avoids XSS
        const del = document.createElement("button");
        del.textContent = "Delete";
        del.onclick = async () => {
          await fetch(`/api/notes/${n.id}`, { method: "DELETE" });
          load();
        };
        li.append(del);
        return li;
      }));
    }

    document.getElementById("form").onsubmit = async e => {
      e.preventDefault();
      const input = document.getElementById("text");
      await fetch("/api/notes", {
        method: "POST",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify({ text: input.value })
      });
      input.value = "";
      load();
    };

    load();
  </script>
</body>
</html>

4. Run it and watch the traffic

Bash
dotnet run

The console prints a line like Now listening on: http://localhost:5xxx. Open that address, add a few notes and delete one. Then open your browser's developer tools on the Network tab: you'll see each GET, POST and DELETE request and its JSON response. That is the client, server and API loop from the diagram, running on your machine.

5. Add a real database

The in-memory dictionary is lost when the app restarts. Almost every web app where users create data needs a database, and SQLite, a single-file database, is the easiest place to start before moving to SQL Server or PostgreSQL. Add Entity Framework Core:

Bash
dotnet add package Microsoft.EntityFrameworkCore.Sqlite

Then define a DbContext, register it with builder.Services.AddDbContext, and replace the dictionary calls with db.Notes.Add(...) and await db.SaveChangesAsync(). Microsoft's minimal API tutorial walks through the same pattern with EF Core, route groups and TypedResults.

6. Add what production needs

Before real users touch it, work through this list:

  • Authentication, with ASP.NET Core Identity or an external provider.
  • Server-side validation of lengths and formats, never only in the browser.
  • HTTPS, which cookies, PWAs and basic security all require.
  • Error handling and logging: app.UseExceptionHandler() plus structured logs.
  • Connection strings in environment variables or a secret store, not in source code.

Where to host it

ASP.NET Core apps are cross-platform, so you have plenty of choices.

Option

How it works

Good for

Azure App Service

Managed hosting. Push a ZIP, a container, or connect GitHub Actions

The quickest path for .NET teams

Containers (Azure Container Apps, AWS ECS, Google Cloud Run, Kubernetes)

Package the app as an image and run it anywhere

Portability, microservices, scale-to-zero

Linux VPS

Kestrel behind Nginx or Caddy as a reverse proxy, managed by systemd

Full control at a low monthly cost

Windows Server with IIS

Install the ASP.NET Core Hosting Bundle and host under IIS

Existing Windows infrastructure

Static hosting plus API

Front end on a CDN (Azure Static Web Apps, Netlify, Vercel), API hosted separately

SPAs and Next.js front ends

Costs range from free tiers for experiments to large monthly bills for high-traffic systems, driven by compute, database size, bandwidth and backups. Start on the smallest plan that meets your needs and check your provider's current pricing before you create anything.

Deploy to Azure App Service from the CLI

These commands follow Microsoft's App Service quickstart for .NET:

Bash
az login
az group create --name notes-rg --location eastus
az appservice plan create --name notes-plan --resource-group notes-rg --sku B1 --is-linux
az webapp create --name <unique-app-name> --resource-group notes-rg --plan notes-plan --runtime "DOTNETCORE:10.0"

dotnet publish --configuration Release --output publish
cd publish && zip -r ../app.zip . && cd ..
az webapp deploy --resource-group notes-rg --name <unique-app-name> --src-path app.zip --type zip

On Windows, create the ZIP with Compress-Archive -Path publish\* -DestinationPath app.zip.

Or publish a container without a Dockerfile

The .NET SDK (8 and later) can build a container image directly. This command pushes the image to your local Docker or Podman, and from there you can push it to any registry and run it on any container platform:

Bash
dotnet publish --os linux --arch x64 /t:PublishContainer

Mistakes beginners make

The most common one is trusting the browser. Client-side checks are a convenience for the user; every request still has to be validated and authorized on the server. The second is rendering user input as HTML, which opens the door to cross-site scripting. Use textContent, as the notes app does, or your framework's encoding.

The rest are architectural. Starting with microservices is a mistake for nearly every first app: one well-structured app is easier to build, test and deploy, and you can split it later. Picking a SPA for a mostly read-only content site costs you simplicity and SEO for no gain. Secrets belong in environment variables, user secrets in development and a vault in production, never in source control. And plan for failure early, because networks drop and servers restart: retries, timeouts, health checks and backups are much cheaper to add on day one than after an outage.

If you have built the notes app, the next step that teaches the most is step 5: swap the dictionary for EF Core and SQLite, restart the app, and check your notes are still there. That one change turns a demo into something you could put in front of users.