Build your first website with HTML, CSS and JavaScript
Learn web development for free: structure pages with HTML, style them with CSS, add interaction with JavaScript, then build a quiz app and publish your own site.
- For you if
- You want to build websites and are happy to start from zero. No programming experience needed.
- Not for you if
- You already build sites with a framework like React and want advanced topics.
Steps in order
-
Free 20 lessons
Structure a page with HTML
Headings, paragraphs, links, images, lists and forms: the skeleton of every web page. Build a simple “about me” page as you go.
Learn HTML from scratch Open course → Also useful for this step ↗ -
Free 18 lessons
Build a complete page from scratch with CSS
Style and lay out a real web page with CSS. Focus on spacing, colours, Flexbox and making the page work on a phone.
Website from Scratch HTML and CSS for Beginners Code Tutorial Open course → -
Free 16 lessons
Add interaction with JavaScript
Variables, functions and events, then change the page when someone clicks. This is where a page becomes an app.
Introduction to JavaScript: Web Tutorial Open course → -
Project About a week
Build a quiz app, then publish your personal site
Follow the quiz-app course to combine HTML, CSS and JavaScript in one project. Then put your own site online for free with GitHub Pages and link the quiz from it.
Building a Quiz App with HTML, CSS, and JavaScript Open course → Also useful for this step ↗
Good free resources elsewhere
- Docs MDN Learn web development (opens in a new tab) Mozilla's free, structured curriculum and the most trusted reference for HTML, CSS and JavaScript.
- Free course theodinproject.com The Odin Project (opens in a new tab) A free full-stack curriculum with real projects, for when you want to go further.
- Tool GitHub GitHub Pages (opens in a new tab) Host your site straight from a GitHub repository.
How this path works
Every website is built from three languages: HTML for structure, CSS for design and JavaScript for behaviour. You’ll learn them in that order with free courses, then finish with two things you can show anyone: a quiz app and your own live website.
Plan for about 4–6 weeks at 4–5 hours a week.
What you need
A browser and a free code editor such as VS Code. That’s it. Open your .html file in the browser to see changes instantly.
Tips that make the difference
- Build something small after every step. A profile page after HTML, a styled version after CSS, a button that does something after JavaScript.
- Use your browser’s developer tools. Right-click any page and choose Inspect to see and edit its HTML and CSS live.
- Design for phones first. Most visitors browse on mobile.
- Look things up on MDN. It is the reference professional developers use every day.
Your project checklist
- The quiz app shows questions one at a time and gives a final score.
- Your personal site has a short bio, your projects and a way to contact you.
- Both work on a phone screen.
- Images have alt text and links make sense out of context, so the site is accessible.
- The site is live on GitHub Pages and you can share its link.
Frequently asked questions
Do I need to learn a framework like React?
Not yet. Frameworks are built on HTML, CSS and JavaScript, so learn those first. Frameworks make much more sense afterwards.
Is web development still worth learning with AI tools around?
Yes. AI tools help you write code faster, but you still need to understand it to fix, adapt and ship it.
What comes next?
Responsive layouts with CSS Grid, then a framework or back-end basics. Browse our free web development courses.
