You can't build a working online web application in HTML alone. HTML supplies the structure and content of each screen, but a real app also needs CSS for layout and visual design, JavaScript for interactivity and state, and a server-side component—or a backend-as-a-service—for data storage, accounts, and business logic. The design phase is where you decide what those screens, states, and data flows must do before you write markup. Treat HTML as the skeleton of a system whose joints and muscles live elsewhere, and the rest of the design falls into place.
This guide walks through designing that skeleton deliberately: mapping user flows, choosing a rendering strategy, structuring accessible semantic pages, planning forms and validation, defining states and errors, and setting conventions your team can follow. It assumes basic familiarity with HTML tags. Everything here reflects stable, long-standing web standards rather than any single framework version, so it stays useful as tools change.
Start With What the App Must Do, Not With Tags
Designing a web application in HTML begins with a job to be done, not a layout. Before you open an editor, write down the one sentence that describes what a signed-in user accomplishes in a typical session. For a task tracker that might be "add, find, and update assignments." For a booking tool it might be "search availability and reserve a slot." That sentence becomes the spine of your design: every page and form should trace back to it.
From there, list the entities the app manages—users, items, orders, messages, whatever they are—and the actions on each. A simple grid of entities against actions (create, read, update, delete, plus any domain-specific action) surfaces the screens you actually need. This prevents the common beginner mistake of designing a beautiful home page that doesn't support the workflow the app exists for.
Then sketch flows as a sequence of screens. A flow diagram can be boxes and arrows on paper. Name each step by what the user sees and decides, not by which function handles it. Designers and developers both read these flows, and they expose missing steps early—before markup makes everything feel more finished than it is.
Decide, too, who your users are and what devices they'll use. A field-service app used on phones in bright sunlight has different contrast, touch-target, and layout requirements than an internal dashboard on desktop monitors. This single decision affects your HTML structure more than any framework choice.
Choose a Rendering Model Before You Write Markup
HTML reaches the browser one of two basic ways, and the choice shapes your file structure. In a multi-page application, the server returns a complete HTML document for each URL. Navigation loads a new document; forms submit and the server responds with a new page. This model is simple, robust, and searchable, and it works well for content-heavy or form-driven apps. Its weakness is that every interaction reloads the page unless you add JavaScript enhancements.
In a single-page application, the browser loads one HTML shell once, and JavaScript swaps content in and out by manipulating the DOM or rendering components. Navigation feels instant and state persists across views, which suits highly interactive tools like editors or dashboards. The costs are a heavier initial load, more client-side complexity, and the need to handle browser history and deep links deliberately.
A middle path—server-rendered pages progressively enhanced with JavaScript—often gives the best of both, especially for teams starting out. You write real HTML that works on its own, then layer interactivity on top.
Whichever you pick, answer these questions in your design notes:
Which URLs exist, and does each return a full document or live inside the shell? A URL per meaningful view supports bookmarking, sharing, and browser back/forward. Where does state live—server, client, or both? Write down which source is authoritative for each piece of data. How does the app behave when JavaScript fails or is slow? The baseline should still be usable if the app's core task allows it.
Regions of the page should have stable landmarks in your plan—a header, a navigation area, a main content area, and status or alert regions—so that markup in every view has a predictable home. You don't need to draw them pixel by pixel; name them and describe their responsibilities.
Lay the Page Foundation With Semantic Structure
Semantic HTML is the design discipline of choosing elements that describe meaning, not appearance. It pays off in accessibility, maintainability, and search—and it makes your CSS far simpler because you style concepts rather than arbitrary boxes.
At minimum, plan these landmarks for each page template:
A for site identity and top-level navigation. A element (or more than one, labeled) for navigation groups. A element that holds the primary content of that page, used once per document. Optional for complementary content. A for secondary links and metadata.
Inside the main area, use for thematically grouped content and headings that reflect outline depth. A well-formed heading hierarchy—one describing the page, for major sections, within them—does more for screen-reader navigation than any ARIA attribute. Use for self-contained pieces like a task card or a blog post, for each form, and native elements like , , , and rather than clickable s. If it does something, it should be the element that already does that thing. Also plan the document's head: a descriptive per view, a tag for mobile rendering, a language attribute on , and links to your stylesheets and scripts. Those elements are part of the design, not an afterthought. A simple skeleton for most app pages looks like this in plan form: a header with brand and account menu, a labeled navigation region, a main region with an and the view's content, a live status region for messages, and a footer. Every screen in your flows should slot into that skeleton, which means users learn the app once and navigate every view by the same map. Plan the Data the Markup Will Present The most common cause of painful redesigns is discovering mid-build that the page needs data the server never sends. Design the data contract for each view at the same time you sketch its markup. Write down, per view, the fields it displays and the inputs it accepts. For each field, note its type (text, number, date, enumerated choice), whether it's required, its expected range or format, and whether it's user-editable. This list turns directly into your HTML form controls and into the labels, help text, and validation rules around them. Decide which data is authoritative on the server and which is derived in the browser. Totals, permissions, and prices should come from the server because the client can't be trusted not to tamper; presentation state like "which tab is open" belongs in the browser. When the two can disagree—for example, an optimistic UI update that hasn't been confirmed—define what users see while waiting. Because your app stores data somewhere, this is also where you decide whether HTML output needs escaping. Any user-supplied text rendered into a page must be escaped or inserted as text rather than markup, or you open the door to cross-site scripting. Design that rule into your templates and server code from the start; retrofitting it is far riskier. Finally, plan for missing and empty states now. What does a list look like with zero items? What does a profile show before it's saved? Sketching these in the HTML plan prevents "undefined" text or blank boxes from reaching production. Design Forms With Labels, Constraints, and Clear Feedback Forms are where users do work, and where most usability and accessibility failures cluster. Design them field by field, with a few non-negotiable rules. Every input gets a visible associated with it, either by wrapping the control or by matching for and id attributes. Labels are not placeholders; placeholders disappear as users type and confuse people with cognitive or visual impairments. Group related fields with and a when the group has a collective meaning, such as a shipping address or a set of choices. Choose the input type that matches the data: , type="number" (with care), type="date", type="password", and for booleans. Native types power on-screen keyboards, autofill, and built-in validation for free. Use for a small fixed set of options and radio buttons for a few options that should be visible at once; reserve long lists for searchable controls that JavaScript enhances. Plan validation in two layers. Use HTML attributes for the cheap wins—required, maxlength, min and max, and pattern for simple formats—so the browser can flag obvious errors instantly. Then plan server-side validation with the same rules, because the client can be bypassed. The design question isn't only "is this valid," but "how does the user learn and fix it": show messages next to the field, describe the problem in plain language, and keep the user's entered data when the form round-trips. Agree on what happens after submission—a redirect to a confirmation view, an inline status message, or a refresh of the current same-page form. Write that into the flow. A form that silently clears or appears to do nothing is a design defect, not a bug to fix later. Map States, Feedback, and Errors Into the HTML Interactive apps have more states than "ready." A view can be loading, empty, partially loaded, populated, saving, failed, or locked by permissions. Design the HTML for each state, and provide a stable place for feedback to appear. For asynchronous regions, reserve a status area that assistive technology announces—a container with aria-live="polite" for routine updates and "assertive" for urgent ones, used sparingly. When data is loading, the region shows a message like "Loading tasks…"; when it resets, the message updates. When a form saves, the confirmation appears in the same predictable place each time. Errors deserve their own plan because they're where users most need help. Distinguish validation errors (fix the field), permission errors (you can't do this), and system errors (the attempt failed—try again). Each needs a message that says what happened and what to do next, placed where the user is looking. Design the failure case for every flow; a flow without a defined failure state isn't designed yet. Disabled and busy states need care too. A button that's disabled while a request is in flight prevents double submissions, but a disabled control that never re-enables traps the user. Pair disabled states with a visible explanation of why and a path out. Set Conventions Team Members Can Follow Consistency is a structural property of good app design, and in HTML it comes from conventions applied everywhere. Decide and document a short list: Naming for id and class attributes, with one system for each and no overlap of responsibilities. How views are titled and how the main heading relates to the browser title. Where status messages appear and how they're announced. The order of landmarks on every page. How error messages are worded and where they sit relative to fields. Whether interactive elements are built from native controls or, only when a native control genuinely can't serve, custom widgets following established accessibility patterns. Keep the list to something a new developer can read in five minutes. Conventions only work if they're short enough to remember and specific enough to check. The page skeleton from earlier is the backbone of these conventions; every template inherits it, and deviations require a reason. Test the Design Before It's Expensive You can validate most of a web application design without a full build. Walk through each flow with the plan in hand and ask whether every step has HTML that supports it, data that reaches it, and a defined state for success and failure. Then test the markup itself in a browser as you build the first thin slice of one flow end to end. Early checks that catch problems cheaply include: 1: Keyboard-only navigation through every form and menu. If you can't reach or activate something with Tab, Shift+Tab, and Enter or Space, the structure needs work. 2: Screen reader spot checks of headings, labels, and the live region on the first flow you build. 3: A resize test at narrow and wide viewports to confirm the landmarks and order hold up. 4: A validation test that submits an empty form and confirms error messages appear next to the fields. 5: A JavaScript-off or slow-load test of the core task, if your rendering model promises a usable baseline. The stop condition for design-level fixes is straightforward: if a problem requires changing what data the app stores or who can access it, pause and resolve that in the design and server contract before writing more markup. Otherwise fix structure early—it gets more expensive with every template built on top of it. Once one flow works end to end—structured HTML, styled, wired to real data, with states and errors handled—the rest of the app is largely repetition of that pattern. Review the result against the flows you mapped at the start. If the app does the job you wrote down in that first sentence, and a keyboard user can do it too, the HTML design is sound.