Web Development
From HTML, CSS and JavaScript to frameworks, tooling, testing, performance and AI-assisted front-end development.
A complete path for front-end developers: how the web works, HTML, CSS and JavaScript, a component framework, build tooling, testing, security, rendering strategies, performance and accessibility, plus using and integrating AI in day-to-day work. It suits beginners aiming for a job and working developers filling gaps. Each subject links the official documentation.
The subjects follow the roadmap.sh Frontend roadmap.
Front-end code runs at the far end of a long chain: DNS lookups, TCP and TLS connections, HTTP requests and the browser's rendering pipeline. Understanding that chain explains slow pages, caching bugs and most "works on my machine" deployment issues.
A global network of networks exchanging packets through routers using IP, with TCP or QUIC providing reliable delivery on top. Your page's bytes cross many hops, which is why latency matters more than bandwidth.
The request/response protocol of the web: methods, status codes, headers and bodies, now usually over HTTP/2 or HTTP/3. Read the Network panel fluently — it is your main debugging tool.
A human-readable name like example.com, structured right to left from top-level domain to subdomains and leased through a registrar. It points at servers through DNS records.
Somewhere that serves your files or runs your server code: static hosts and CDNs for pre-built sites, serverless platforms or containers and VMs for dynamic ones.
Resolvers ask root, TLD and authoritative servers to translate a name into an address, caching answers per their TTL. Know A, AAAA, CNAME and TXT records — you will set them for every deployment.
The browser parses HTML into the DOM and CSS into the CSSOM, builds a render tree, then lays out, paints and composites. Scripts can block parsing and layout reads can force reflows.
The structure and meaning of a page. Use semantic elements (header, nav, main, button, label) so browsers, search engines and assistive technology understand it, and learn forms and validation attributes well — they save a lot of JavaScript.
How pages look and adapt. Master the cascade and specificity, the box model, Flexbox and Grid, custom properties and media and container queries; most layout bugs come from misunderstanding one of these.
The language of browser behaviour. Learn scopes and closures, modules, the event loop, promises and async/await, then DOM manipulation, events and fetch — the foundation every framework builds on.
Version control records every change so you can review, revert and collaborate safely. Commit small, logical changes with clear messages and work on branches.
The de facto standard: add, commit, branch, switch, merge, rebase, stash and log. Understand the staging area and how to recover with reflog before you need it.
Hosted Git platforms add pull requests, code review, issues, CI pipelines and static hosting around your repository. They are where team workflow actually happens.
Package managers install dependencies from the npm registry, resolve versions against semver ranges and lock them in a lockfile. Commit the lockfile and use ci-style installs in pipelines for reproducible builds.
Ships with Node.js. Know npm install, npm ci, npm run, npx, package.json scripts and the difference between dependencies and devDependencies.
Stores each package version once in a content-addressed store and links it into projects, so installs are fast and disk-light. Its strict node_modules stops code importing undeclared dependencies.
An npm alternative with workspaces and, in its modern versions, Plug'n'Play installs without a node_modules folder. Common in older monorepos.
A fast all-in-one JavaScript runtime that also acts as package manager, bundler and test runner; bun install works with existing package.json projects.
Component frameworks manage UI state and keep the DOM in sync with it, so large interfaces stay maintainable. Learn one deeply — components, props, state, effects, routing and data fetching — before sampling others.
A library for building UIs from components and hooks (useState, useEffect, useMemo), with the largest ecosystem and job market. Usually used through a framework such as Next.js.
A progressive framework with single-file components and fine-grained reactivity through ref and computed. Approachable, with an official router and store (Pinia).
A full framework from Google with TypeScript, dependency injection, a CLI and signals-based reactivity. Strong opinions suit large enterprise teams.
A compiler-based framework that turns components into lean JavaScript; Svelte 5 uses runes such as $state and $derived for reactivity.
JSX components with signals that update only the exact DOM nodes that change, with no virtual DOM. Very fast and React-like to write, but components run only once.
Frameworks speed up styling with conventions: utility-first systems compose small classes, component libraries ship ready-made widgets. Learn plain CSS first so you know what the framework generates.
Utility-first CSS: style directly in markup with classes like flex gap-4 md:grid, with design tokens defined as theme variables and unused CSS never generated.
AI tools are now part of everyday front-end work. Before relying on them, understand what language models can and cannot do so you can judge their output critically.
Models trained on huge text corpora predict the next token given a context window. They have no live knowledge beyond their training and tools, and can state wrong things confidently.
AI shifts effort from typing code to specifying intent and reviewing results. You still own correctness, security and architecture; generated code needs the same tests and review as hand-written code.
Coding assistants range from inline completion to agents that read the repository, run commands and edit many files. Pick one, learn its context and permission model, and keep diffs small enough to review.
Anthropic's agentic coding tool for the terminal and IDEs: it explores the codebase, edits files, runs tests and commands, and is configured per project through CLAUDE.md.
A VS Code-based editor built around AI, with tab completion, chat over the codebase and an agent mode for multi-file edits.
GitHub's assistant inside VS Code, JetBrains and github.com: completions, chat, and a coding agent that can open pull requests.
Google's agent-first development environment, where agents plan and carry out tasks across the editor, terminal and browser, powered by Gemini models.
Good results come from clear context: state the goal, constraints and acceptance criteria, point at relevant files, give examples, and ask for a plan before code on larger changes. Iterate in small steps rather than one giant request.
An agent is a model running in a loop with tools — reading files, running tests, calling APIs — deciding its next step from the results. They are powerful for multi-step work but need sandboxing, permissions and human review.
The Model Context Protocol is an open standard for connecting AI applications to external tools and data through servers that expose tools, resources and prompts. One server works with any MCP-capable client.
Packaged instructions, scripts and reference files an agent loads only when a task needs them, such as a deploy procedure or a design-system guide. They give the agent repeatable know-how without bloating every prompt.
Where AI pays off for front-end developers beyond writing new code: reviewing, restructuring and documenting existing code. Each still needs a human to check the result.
AI reviewers can flag bugs, missing tests and style issues on a pull request before a human looks. Treat findings as suggestions, and keep human review for design and intent.
Restructuring code without changing behaviour, e.g. extracting components or migrating APIs. AI makes mechanical refactors fast; a good test suite is what makes them safe.
Drafting READMEs, JSDoc comments and component docs from code. Generated docs drift like any others, so prefer docs tied to types and examples that are tested.
Adding AI features to your own product: chat, summaries, search or structured extraction. Call model APIs from the server (never expose keys in the browser), stream responses to the UI and handle rate limits and errors gracefully.
The Claude API: the Messages endpoint, tool use, streaming and prompt caching, with official TypeScript and Python SDKs.
The OpenAI API for GPT models, with the Responses API, function calling, structured outputs and an official openai npm package.
Google's Gemini API, with multimodal input (text, images, PDFs), structured JSON output and the @google/genai SDK.
How users prove who they are and how the app remembers it: session cookies, token-based auth with JWTs, OAuth 2.0 and OpenID Connect for social login, and passkeys through WebAuthn. Prefer HttpOnly, Secure, SameSite cookies over tokens in localStorage.
Build tools resolve imports, transform TypeScript and JSX, split code into chunks, minify and hash files for caching, and serve a fast dev server with hot module replacement. Frameworks usually configure one for you, but you should know what it does.
Serves native ES modules in development for near-instant startup and HMR, and produces optimised production bundles. The default for most new non-Next projects.
An extremely fast bundler and transpiler written in Go, used inside other tools and fine on its own for libraries and simple apps.
A Rust-based compiler for JavaScript and TypeScript, used by Next.js and others in place of Babel for fast transforms and minification.
An ES-module-first bundler with strong tree-shaking and a large plugin API; the go-to for publishing libraries and historically Vite's production bundler.
A Rust rewrite of Rollup with a compatible plugin API, built to become the single bundler behind Vite for both dev and production.
A zero-configuration bundler that infers what to do from your entry HTML file. Handy for quick projects that need little tuning.
Formatters end style debates by rewriting code to one layout; linters catch bugs and risky patterns. Run them in the editor, in a pre-commit hook and in CI so the main branch stays clean.
The pluggable JavaScript and TypeScript linter, configured with eslint.config.js (flat config). Plugins add React hooks rules, accessibility checks and typescript-eslint type-aware rules.
An opinionated formatter for JS, TS, CSS, HTML, Markdown and more with very few options. Disable ESLint's formatting rules so the two never fight.
A single Rust tool that formats and lints much faster than ESLint plus Prettier, with Prettier-compatible output. Its rule set is smaller than ESLint's plugin ecosystem.
Front-end developers own a big share of an app's attack surface: injected scripts, leaked tokens, misconfigured cross-origin access. Learn the browser's security model and the headers that enforce it.
HTTP over TLS, encrypting and authenticating traffic. Required for service workers, many modern APIs and secure cookies; add HSTS so browsers refuse plain HTTP.
The server-controlled mechanism (Access-Control-Allow-* headers and preflight OPTIONS requests) that relaxes the same-origin policy for specific origins. Fix CORS errors on the server, not in the client.
Content Security Policy headers restrict which scripts, styles and connections a page may load, making XSS much harder to exploit. Start in report-only mode and use nonces instead of unsafe-inline.
The OWASP Top 10 lists the most common web vulnerabilities — broken access control, injection, insecure design and more. On the front end, watch for XSS, unsafe HTML rendering and secrets in bundles.
Automated tests let you change code with confidence. Mix fast unit and component tests that check behaviour the way users see it with a smaller set of end-to-end tests through a real browser.
A Vite-native test runner with a Jest-compatible API, fast watch mode and browser mode. The natural choice in Vite projects.
The long-standing JavaScript test runner with mocking and snapshots built in; still common in existing codebases.
End-to-end testing across Chromium, Firefox and WebKit with auto-waiting locators, parallel runs, tracing and a codegen recorder.
An end-to-end and component testing tool with an interactive runner that shows each step in the browser.
The browser offers far more than the DOM: fetch, Storage, IntersectionObserver, Web Workers, the History and Clipboard APIs, Notifications and more. Check support on MDN before adding a library for something the platform already does.
Static types catch whole classes of bugs before the code runs and make refactoring safer. TypeScript is the standard; enable strict, type API responses at the boundary and run tsc --noEmit in CI.
Server-side rendering produces HTML per request on the server, then hydrates it in the browser. It improves first paint and SEO for dynamic pages, at the cost of server infrastructure and hydration complexity.
The leading React framework: App Router with React Server Components, server actions, streaming, and static or dynamic rendering per route.
The classic React routing library, which in v7 also works as a full-stack framework with loaders, actions and SSR (the successor to Remix).
A full-stack React framework built on TanStack Router, with type-safe routing, server functions and SSR with streaming.
The Vue meta-framework: file-based routing, server routes, auto-imports and hybrid rendering per route.
The official Svelte application framework with filesystem routing, load functions, form actions and adapters for many hosts.
Static site generation renders pages to HTML at build time, so they can be served from a CDN with almost no runtime cost. Ideal for content sites; add incremental rebuilds or islands for dynamic parts.
A content-focused framework that ships zero JavaScript by default and hydrates interactive "islands" written in React, Vue, Svelte or others only where needed.
A simple, flexible static site generator that turns templates (Nunjucks, Liquid, Markdown and more) into plain HTML with no client framework.
A Vue-powered static generator aimed at documentation sites, writing pages in Markdown with Vue components inside.
Shipping the built app: connect a repository, build on every push, get preview URLs for pull requests and serve from a CDN. Static sites can go almost anywhere; SSR needs a platform that runs your server code.
Free static hosting straight from a repository, built with GitHub Actions. Good for portfolios, docs and SPAs; no server-side code.
Pages and Workers deploy static assets and edge functions to Cloudflare's global network, with a generous free tier.
The company behind Next.js; zero-config deploys with preview URLs and serverless functions, with first-class support for Next.js features.
Git-based hosting for static and Jamstack sites with serverless functions, forms and deploy previews.
A platform for running containers and databases from a repo, useful when the front end needs a long-running server or backend alongside it.
Hosts static sites, web services and databases with Git-based deploys; static sites are free.
A shared set of tokens (colour, spacing, type), accessible components and usage guidelines that keeps a product consistent across teams. Build components in isolation and document them, for example with Storybook.
Fast sites keep users: measure with Core Web Vitals (LCP, INP, CLS) from real users and lab tools, then cut JavaScript, optimise images and fonts, and cache aggressively. Always profile before optimising.
An automated audit for performance, accessibility, SEO and best practices, in Chrome DevTools, PageSpeed Insights or CI. Lab scores vary between runs; trends matter more than one number.
The Performance panel records main-thread work and layout shifts, Network shows waterfalls and caching, Coverage finds unused code, and the Memory panel tracks leaks.
Scripts that sit between the page and the network, intercepting fetch to serve cached responses for instant repeat visits and offline support. Version caches carefully to avoid stale apps.
The HTTP header governing browser and CDN caching. Serve hashed assets with max-age=31536000, immutable and HTML with no-cache or short lifetimes plus revalidation.
Send HTML or data in chunks as it becomes ready instead of waiting for the whole response, so the browser can start rendering early. Used by React Suspense streaming and token-by-token AI output.
Native browser APIs for reusable, encapsulated components that work in any framework or none. Useful for design systems shared across stacks and for embeddable widgets.
The <template> element holds inert markup you clone with JavaScript, and <slot> marks where a component's children are placed.
Define new tags with customElements.define("my-tag", class extends HTMLElement {}) and lifecycle callbacks like connectedCallback and attributeChangedCallback.
A scoped DOM subtree attached with attachShadow() whose styles and markup are isolated from the page. Style it from outside with CSS custom properties and ::part().
A query language where the client asks for exactly the fields it needs from a typed schema, through a single endpoint. It reduces over-fetching for complex UIs but shifts caching and performance concerns to clients and servers.
Apollo Client is a GraphQL client for React and others, with a normalised cache, useQuery/useMutation hooks and dev tools.
Meta's GraphQL client: components declare data needs as fragments, and a compiler builds efficient queries. Powerful at scale with a steeper learning curve.
Make interfaces usable by everyone, including keyboard and screen-reader users. Use semantic HTML first, manage focus, label controls, meet colour contrast and target WCAG 2.2 AA; reach for ARIA only when native elements cannot do the job.
Progressive web apps add a web app manifest, a service worker and HTTPS so a site can be installed, work offline and, where supported, receive push notifications. They avoid app-store distribution but platform support varies, especially on iOS.
Front-end skills carry over to native mobile apps through cross-platform frameworks. Choose based on how native the result must feel and how much code you want to share with the web.
Write React components that render real native views on iOS and Android; Expo provides tooling, builds and over-the-air updates.
Google's UI toolkit in Dart that draws its own widgets, targeting mobile, desktop and web from one codebase.
Builds mobile apps with web technologies inside a native shell (Capacitor), using Angular, React or Vue components.
Desktop apps built from web technologies run a web UI inside a native shell with access to the file system and OS. The main trade-off is bundle size and memory against native integration.