How to Learn Web Development: A Complete 2027 Roadmap From Zero
A free, staged path for learning web development from scratch: HTML, CSS and JavaScript, a frontend framework, backend and databases, deployment, testing, accessibility and security, with the best free courses, time estimates, project ideas and answers to the questions beginners ask.
Last reviewed: December 2026
Web development is one of the most accessible ways into programming: everything you need is free, your work runs in any browser, and you can show it to anyone with a link. It is also overwhelming, because the ecosystem changes fast and every tutorial recommends a different stack. This guide gives you a clear web development roadmap: learn the fundamentals that do not change (HTML, CSS, JavaScript, HTTP), add one framework, learn the backend and databases, then deploy real projects. Each stage includes a best-pick resource, a realistic time estimate and a project that proves you are ready to move on.
Paid resources are marked (paid).
Table of Contents
- Frontend, Backend, Full Stack: What’s the Difference?
- The Roadmap at a Glance
- Stage 0: How the Web Works (1 week)
- Stage 1: HTML (2 weeks)
- Stage 2: CSS and Responsive Design (4-6 weeks)
- Stage 3: JavaScript (8-12 weeks)
- Stage 4: Tools: Git, Terminal, npm, Build Tools (2 weeks, overlapping)
- Stage 5: A Frontend Framework (6-10 weeks)
- Stage 6: Backend, APIs and Databases (8-12 weeks)
- Stage 7: Deploy, Test, Secure (4-6 weeks)
- Full Curricula Compared
- Frameworks Compared
- Books and References
- Project Ideas by Level
- Building a Portfolio That Gets Interviews
- Common Mistakes
- FAQ
- Where to Go Next
- Contributing
Frontend, Backend, Full Stack: What’s the Difference?
| Role | Builds | Core technologies |
|---|---|---|
| Frontend developer | What users see and interact with in the browser | HTML, CSS, JavaScript/TypeScript, a framework (React, Vue, Svelte, Angular), accessibility, performance |
| Backend developer | Servers, APIs, business logic, data storage | A server language (JavaScript/Node.js, Python, Go, Java, C#, PHP, Ruby), databases, authentication, caching |
| Full-stack developer | Both, end to end | A combination of the above, plus deployment |
Recommendation: learn the fundamentals of both, then lean toward the side you enjoy. Most junior roles expect some full-stack ability.
The Roadmap at a Glance
| Stage | Focus | Time at ~10 h/week | Best pick (free) | Milestone |
|---|---|---|---|---|
| 0. How the web works | Browsers, HTTP, DNS, client/server | 1 week | MDN: Learn web development | Explain what happens when you visit a URL |
| 1. HTML | Semantic structure, forms, accessibility basics | 2 weeks | web.dev Learn HTML + MDN | A multi-page semantic site |
| 2. CSS | Box model, Flexbox, Grid, responsive design | 4-6 weeks | web.dev Learn CSS + The Odin Project | Rebuild a real landing page from a design |
| 3. JavaScript | Language, DOM, events, async, fetch | 8-12 weeks | javascript.info + The Odin Project | An interactive app using a public API |
| 4. Tools | Git, terminal, npm, Vite, DevTools | 2 weeks (overlap) | The Missing Semester + Pro Git | All projects on GitHub, deployed |
| 5. Framework | React (or Vue/Svelte), TypeScript | 6-10 weeks | react.dev Learn + Full Stack Open | A multi-view SPA with routing and state |
| 6. Backend | Node.js/Express or another stack, REST, SQL, auth | 8-12 weeks | Full Stack Open + The Odin Project | A full-stack CRUD app with login |
| 7. Production | Deployment, testing, security, performance | 4-6 weeks | web.dev, Playwright, OWASP Top 10 | A deployed, tested app with CI |
Realistic timeline: 6-9 months part-time to build full-stack projects confidently; 9-15 months to be competitive for junior roles. Faster with more hours or prior programming experience.
Stage 0: How the Web Works (1 week)
Learn the mental model before the syntax:
- Client and server: the browser requests; servers respond.
- URLs, DNS, IP addresses: how a name becomes a machine.
- HTTP: methods (GET, POST, PUT, DELETE), status codes, headers, cookies.
- What the browser does: parse HTML into the DOM, apply CSS, run JavaScript, render.
- Static vs dynamic sites.
Resources: MDN: Learn web development (the “Getting started” modules), MDN HTTP overview.
Stage 1: HTML (2 weeks)
Learn: document structure, headings, paragraphs, links, images, lists, tables, forms and inputs, semantic elements (header, nav, main, article, footer), alt text, metadata.
| Resource | Notes |
|---|---|
| web.dev Learn HTML | Free, modern, written by browser engineers |
| MDN HTML guides | The definitive reference |
| freeCodeCamp | Interactive lessons; its current curriculum is a multi-certification full-stack path |
| W3C WAI: Introduction to accessibility | Learn accessibility from day one |
Project: a personal “about me” site with 3 pages, a contact form (no backend yet), and fully semantic markup. Check it with the browser’s accessibility tools.
Stage 2: CSS and Responsive Design (4-6 weeks)
Learn, in order:
- Selectors, specificity, the cascade, inheritance.
- The box model,
display, units (rem,%,vw), colors, typography. - Flexbox for one-dimensional layout.
- Grid for two-dimensional layout.
- Responsive design: mobile-first, media queries, fluid images,
clamp(). - Positioning, z-index, transitions and animations.
- Custom properties (CSS variables), modern features like container queries and
:has().
| Resource | Cost | Notes |
|---|---|---|
| web.dev Learn CSS | Free | Clear, modern, comprehensive |
| CSS-Tricks: A Complete Guide to Flexbox | Free | The classic visual reference |
| Flexbox Froggy and Grid Garden | Free | Games that drill layout properties |
| Josh W. Comeau’s CSS articles | Free articles; his course is (paid) | Deep, intuitive explanations |
| Can I use | Free | Browser support lookup |
| Tailwind CSS docs | Free | Popular utility-first framework; learn plain CSS first |
Best pick: web.dev Learn CSS for concepts, then rebuild real pages.
Project: recreate a landing page from a design (e.g., a free Frontend Mentor challenge) that looks right on phone, tablet and desktop.
Stage 3: JavaScript (8-12 weeks)
This is the longest stage and the most important. Do not rush it.
Core language:
- Variables (
let,const), types, operators, strings, numbers - Conditionals, loops, functions, arrow functions, scope, closures
- Arrays and objects; array methods (
map,filter,reduce,find) - Destructuring, spread, modules (
import/export) - Classes and prototypes (enough to read them)
- Error handling
In the browser:
- The DOM: selecting, creating, updating elements
- Events and event delegation
- Forms and validation
fetch, JSON, Promises,async/await- Local storage
- The event loop (how async actually works)
| Resource | Cost | Notes |
|---|---|---|
| javascript.info | Free | The best modern JavaScript tutorial; thorough with exercises |
| The Odin Project: JavaScript path | Free | Project-based, community support |
| Eloquent JavaScript | Free online | Excellent book; more programming-theory oriented |
| MDN JavaScript Guide | Free | Reference and guides |
| You Don’t Know JS Yet | Free on GitHub | Deep dive into how JavaScript really works |
| CS50’s Web Programming with Python and JavaScript | Free | University-style course covering both front and back end |
Best pick: javascript.info for the language plus The Odin Project for projects.
Projects: a calculator, a to-do list with local storage, a weather app using a public API, a quiz game, a library/book tracker.
Stage 4: Tools: Git, Terminal, npm, Build Tools (2 weeks, overlapping)
| Tool | Why | Resource |
|---|---|---|
| Browser DevTools | Inspect HTML/CSS, debug JS, profile network | Built into Chrome, Firefox, Safari, Edge |
| VS Code | Editor | VS Code docs |
| Terminal | Run tools and servers | The Missing Semester |
| Git and GitHub | Version control and portfolio | Pro Git, GitHub Docs |
| Node.js and npm | Run JavaScript outside the browser; install packages | Node.js Learn |
| Vite | Fast dev server and bundler used by many frameworks | Vite guide |
| Formatter and linter | Consistent, error-checked code | Prettier and ESLint docs |
| Hosting static sites | Put work online for free | GitHub Pages, Cloudflare Pages |
Stage 5: A Frontend Framework (6-10 weeks)
Pick one framework and get good at it. React has the largest job market; Vue and Svelte are often considered easier to start with; Angular is common in enterprises.
Learn TypeScript at this stage too. Most professional frontend codebases use it. Start with the TypeScript Handbook.
React learning path:
- Components, JSX, props.
- State (
useState) and events. - Rendering lists, conditional rendering.
- Effects (
useEffect) and when not to use them. - Forms, controlled inputs.
- Routing (React Router or a framework’s router).
- Data fetching and server state.
- Context and state management.
- A meta-framework: Next.js for server rendering, routing and full-stack features.
| Resource | Cost | Notes |
|---|---|---|
| react.dev Learn | Free | The official docs, rewritten around modern hooks; excellent |
| Full Stack Open (University of Helsinki) | Free | React, Node, MongoDB/Postgres, TypeScript, testing, GraphQL, CI/CD; university-quality |
| Next.js Learn | Free | Official step-by-step full-stack app tutorial |
| Vue guide | Free | If you choose Vue |
| Svelte tutorial | Free | If you choose Svelte; interactive |
| Astro | Free | Content-focused sites with islands of interactivity |
| htmx | Free | Hypermedia approach: interactivity from server-rendered HTML |
Best pick: react.dev + Full Stack Open.
Stage 6: Backend, APIs and Databases (8-12 weeks)
Concepts (language-independent):
- HTTP servers, routing, middleware
- REST API design: resources, methods, status codes, pagination, versioning
- Databases: SQL, schema design, relationships, indexes, migrations
- ORMs and query builders (and when to write raw SQL)
- Authentication (sessions, cookies, tokens) and authorization
- Validation and error handling
- File uploads and background jobs
- Environment variables and secrets
Choosing a backend stack:
| Stack | Language | Why choose it |
|---|---|---|
| Node.js + Express / Fastify / Hono | JavaScript/TypeScript | One language across the stack; huge ecosystem |
| Next.js full stack | TypeScript | Frontend and backend routes in one framework |
| Django / Flask / FastAPI | Python | Batteries-included (Django) or lightweight; great for data/ML-adjacent apps |
| Ruby on Rails | Ruby | Very productive conventions for CRUD apps |
| Laravel | PHP | Mature ecosystem; PHP powers a large share of the web |
| Spring Boot | Java/Kotlin | Enterprise standard |
| ASP.NET Core | C# | Strong in enterprise and Microsoft ecosystems |
| Go standard library / frameworks | Go | Simple, fast services |
Best pick for beginners from this roadmap: Node.js + Express with PostgreSQL, because you already know JavaScript. Learn SQL directly, not only through an ORM.
| Resource | Cost | Notes |
|---|---|---|
| Full Stack Open parts 3-4, 13 | Free | Node/Express, testing, relational databases |
| The Odin Project: Full Stack JavaScript path | Free | Node, Express, PostgreSQL, authentication |
| Node.js Learn | Free | Official guides |
| Express docs | Free | The most common Node web framework |
| SQLBolt | Free | Interactive SQL lessons |
| PostgreSQL tutorial | Free | Official |
| CS50 Web | Free | Django-based backend path |
Project: a full-stack app with user accounts, a relational database, CRUD operations, and a REST API, e.g., a recipe manager, job application tracker, or event RSVP app.
Stage 7: Deploy, Test, Secure (4-6 weeks)
Deployment
- Static sites: GitHub Pages, Cloudflare Pages, Netlify, Vercel (free tiers available).
- Full-stack apps: platform-as-a-service providers with free or low-cost tiers, or containers with Docker on a cloud provider.
- Learn: environment variables, build steps, custom domains, HTTPS, logs.
Testing
| Type | Tool examples | What it catches |
|---|---|---|
| Unit | Vitest, Jest | Logic errors in functions/components |
| Integration / API | Supertest, framework test clients | Broken endpoints, DB interactions |
| End-to-end | Playwright, Cypress | Broken user flows in a real browser |
Security essentials
- Read the OWASP Top 10.
- Hash passwords with a slow algorithm (bcrypt, scrypt or Argon2), never store plain text.
- Use parameterized queries to prevent SQL injection.
- Escape output to prevent XSS; use framework defaults.
- Use HTTPS, secure cookie flags, CSRF protection where relevant.
- Keep secrets out of Git.
Performance and accessibility
- Measure with Lighthouse in Chrome DevTools; learn Core Web Vitals from web.dev.
- Optimize images, lazy-load, minimize JavaScript.
- Test keyboard navigation and screen reader basics; follow W3C WAI guidance.
Continuous integration
Run tests and linting automatically on every push with your Git host’s CI system, and deploy automatically from the main branch once tests pass.
Full Curricula Compared
| Curriculum | Focus | Format | Cost | Best for |
|---|---|---|---|---|
| The Odin Project | Full stack (JavaScript or Ruby on Rails) | Curated readings + many projects + Discord community | Free | Self-directed learners who want to build a lot |
| freeCodeCamp | Full stack, step-by-step | Interactive browser exercises + projects + certifications | Free | Beginners who like guided, bite-size steps |
| Full Stack Open | Modern React/Node/TypeScript | University course text + exercises | Free (optional university credits) | Learners who know basic programming |
| CS50 Web | Python/Django + JavaScript | Lectures + projects | Free (paid verified certificate) | Learners who prefer lectures and a CS angle |
| MDN Learn web development | Frontend fundamentals | Structured articles + challenges | Free | Thorough fundamentals from the reference authors |
| web.dev Learn | HTML, CSS, accessibility, performance, forms, images | Courses | Free | Modern best practices |
| roadmap.sh | Visual roadmaps for frontend, backend, full stack | Interactive charts with links | Free (some features paid) | Seeing the whole landscape |
Best overall combination: The Odin Project as the backbone, MDN and javascript.info as references, Full Stack Open once you are comfortable with JavaScript.
Frameworks Compared
| Framework | Learning curve | Ecosystem/jobs | Notes |
|---|---|---|---|
| React (+ Next.js) | Medium | Largest | Most job listings; large ecosystem of libraries |
| Vue (+ Nuxt) | Gentle | Large | Approachable docs, single-file components |
| Svelte (+ SvelteKit) | Gentle | Growing | Compiler-based, minimal boilerplate |
| Angular | Steeper | Large in enterprise | Batteries-included, opinionated, TypeScript-first |
| Astro | Gentle | Growing | Great for content sites and blogs |
| htmx + server templates | Gentle | Niche but rising | Minimal JavaScript, server-rendered HTML |
Do not agonize: concepts (components, state, props, routing, data fetching) transfer between them.
Books and References
| Resource | Free? | Best for |
|---|---|---|
| MDN Web Docs | Free | The reference for HTML, CSS, JS and Web APIs |
| javascript.info | Free | Complete modern JavaScript |
| Eloquent JavaScript | Free online | JavaScript and programming fundamentals |
| You Don’t Know JS Yet | Free on GitHub | Deep JavaScript internals |
| TypeScript Handbook | Free | TypeScript |
| High Performance Browser Networking | Free online | How networking affects web performance |
| CSS: The Definitive Guide (O’Reilly) | (paid) | Exhaustive CSS reference |
| Refactoring UI by Adam Wathan and Steve Schoger | (paid) | Practical visual design for developers |
Project Ideas by Level
Beginner (HTML/CSS/JS)
| Project | Skills |
|---|---|
| Personal portfolio site | Semantic HTML, responsive CSS, deployment |
| Landing page clone | Layout, Flexbox/Grid |
| Calculator | DOM, events, state |
| To-do list with local storage | CRUD in the browser |
| Weather app (public API) | fetch, async, error states |
| Quiz app | State, timers |
Intermediate (framework + API)
| Project | Skills |
|---|---|
| Movie/book search app with favorites | API integration, routing, persistence |
| Kanban board with drag and drop | Complex state, accessibility |
| Markdown note-taking app | Editors, storage, search |
| Expense tracker with charts | Data visualization, forms |
| E-commerce storefront (fake products, test-mode payments only) | Cart state, routing, checkout flow |
Advanced (full stack)
| Project | Skills |
|---|---|
| Social app with auth, posts, comments, likes | Auth, relational data, pagination |
| Real-time chat with WebSockets | Real-time, presence |
| Job application tracker with email reminders | Background jobs, scheduling |
| Multi-tenant SaaS dashboard | Roles and permissions, billing concepts |
| Collaborative whiteboard | Real-time sync, conflict resolution |
Push each to GitHub with a README, live demo link, screenshots and a short “what I learned” section.
Building a Portfolio That Gets Interviews
- 3-5 polished projects beat 20 tutorial clones. At least one should be full stack, and at least one should solve a real problem for real users (even friends or a local club).
- Live demo + source code + README for each.
- Clean commits and code: reviewers do read them.
- Accessibility and responsiveness: test on a phone.
- Write about it: a short post per project explaining a hard problem you solved.
- Contribute to open source: even documentation fixes show you can work in a real codebase.
Common Mistakes
- Skipping fundamentals for a framework. React is much easier when JavaScript is solid.
- Tutorial hell. Build without step-by-step instructions as early as possible.
- Learning five frameworks shallowly instead of one deeply.
- Ignoring accessibility until the end.
- Copying CSS without understanding the box model and layout.
- Never deploying. Deployment exposes real problems; do it from the first project.
- Neglecting Git. Commit early, commit often.
- Following outdated tutorials. Check the date, especially for React (class components are legacy) and build tools.
FAQ
How long does it take to learn web development? About 3 months part-time to build static and interactive frontend projects, 6-9 months to build full-stack apps, and typically 9-15 months to be job-ready, depending on hours per week and prior experience.
Can I learn web development for free? Yes. The Odin Project, freeCodeCamp, Full Stack Open, MDN, web.dev, javascript.info and CS50 Web are all free and cover everything you need.
Should I learn HTML, CSS and JavaScript before React? Yes. Learn solid HTML, CSS and especially JavaScript first. React builds on JavaScript concepts like functions, arrays, objects, closures and modules.
Frontend or backend first? Frontend first for most beginners, because you see results immediately in the browser. Then add backend.
Do I need a computer science degree to be a web developer? No. Many web developers are self-taught or bootcamp graduates. A strong portfolio and solid fundamentals matter most.
Is web development still a good career with AI tools? AI tools speed up routine code, but companies still need developers who understand architecture, accessibility, security, performance, debugging and product needs. Strong fundamentals make you more effective with AI tools, not less needed.
Which backend language should I learn? If you already know JavaScript, Node.js keeps you in one language. Python (Django/FastAPI) is great if you’re interested in data or ML. Java, C# and Go are strong for enterprise and backend-focused careers.
Do I need to learn TypeScript? For professional frontend work, increasingly yes. Learn it once you are comfortable with JavaScript.
What computer do I need? Any reasonably modern laptop running macOS, Windows or Linux. Web development is not hardware-intensive.
Is The Odin Project or freeCodeCamp better? freeCodeCamp is more guided, with in-browser exercises, which suits complete beginners. The Odin Project expects you to set up a real development environment and build bigger projects with less hand-holding, which better mirrors real work. Many learners use both.
Where to Go Next
- How to Learn System Design: scale your apps and prepare for senior interviews.
- How to Learn Programming: strengthen fundamentals and data structures.
- How to Learn Machine Learning: add AI features to your apps.
- Explore patterns: Refactoring.Guru design patterns.
Contributing
Pull requests and issues are welcome. Please include a working link, what the resource is best for, its level, and whether it is paid. Outdated tutorials (old APIs, deprecated tools) will be removed, so flags about stale content are very helpful.
If this helped you, a star helps others find it.
More free resources
Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.