The three core languages of the web, HTML, CSS and JavaScript, can be learned entirely from free material, and the best of it is maintained by browser makers and standards organisations. This page lists the references, courses and tools worth bookmarking, explains what each is for and suggests an order in which to learn.
How the three languages fit together
- HTML gives a page its structure and meaning: headings, paragraphs, links, images, forms.
- CSS controls presentation: layout, colour, typography, behaviour on different screen sizes.
- JavaScript adds behaviour: responding to clicks, loading data, updating the page.
Learn them in that order. For an overview, see Web Development Basics: HTML, CSS, JavaScript and the Server.
The essential reference
MDN Web Docs
Maintained by Mozilla with contributions from other browser makers, MDN is the standard reference for web technologies. Every HTML element, CSS property and JavaScript feature has a page with explanation, examples and browser compatibility data. It also contains a complete structured curriculum for beginners. If you bookmark only one site, bookmark this one. Open MDN Web Docs.
Structured courses
web.dev Learn
Free courses from the Chrome team: Learn HTML, Learn CSS, Learn JavaScript, Learn Responsive Design, Learn Forms, Learn Accessibility, Learn Images and Learn Performance. Each is concise and current. Open web.dev Learn.
The Modern JavaScript Tutorial
A thorough, well-organised free text that takes you from the basics of the language through to working with the browser. Open javascript.info.
freeCodeCamp
A non-profit offering free interactive courses with exercises you complete in the browser, including responsive web design and JavaScript. Open freeCodeCamp.
The Odin Project
A free, open-source curriculum that guides you through building real projects, with a foundations path covering HTML, CSS and JavaScript. Open The Odin Project.
Tools for checking your work
W3C Markup Validation Service
Checks HTML for errors against the standard. Invalid markup is a common cause of layout and accessibility problems. Open the HTML validator.
W3C CSS Validation Service
The equivalent for stylesheets. Open the CSS validator.
Can I use
Shows which browser versions support a given feature, so you know whether it is safe to rely on. Open Can I use.
Browser developer tools
Every modern browser includes developer tools, opened with F12 or by right-clicking and choosing Inspect. They let you examine and change HTML and CSS live, see JavaScript errors in the console, watch network requests and simulate phone screens. Learning to use them is as important as learning the languages. Chrome’s are documented at Chrome DevTools.
Lighthouse and PageSpeed Insights
Lighthouse, built into Chrome’s developer tools, audits a page for performance, accessibility and good practice. PageSpeed Insights runs a similar test online and adds data from real users where available.
Accessibility
W3C Web Accessibility Initiative
The source of the Web Content Accessibility Guidelines, with introductions, tutorials and quick-reference material on making sites usable for people with disabilities. Accessibility is far easier to learn alongside HTML than to add later. Open the W3C WAI.
For a practical start, see How to Run a First Accessibility Check on a Website.
The standards themselves
You will rarely need to read specifications, but it helps to know where they are.
- HTML: the HTML Living Standard, maintained by WHATWG.
- CSS: specifications published by the W3C CSS Working Group.
- JavaScript: the ECMAScript standard, published by Ecma International.
MDN summarises all of these in more approachable language and links to the relevant section of each.
A learning path
- HTML first. Learn to structure a page with headings, paragraphs, lists, links and images. Build a simple one-page profile by hand.
- CSS next. Learn selectors, the box model, then flexbox and grid for layout. Style the page you built.
- Responsive design. Make that page work on a phone using flexible layouts and media queries.
- Developer tools. Inspect your own page and other websites to see how they are built.
- Accessibility basics. Semantic elements, alt text, labels on form fields, keyboard navigation.
- JavaScript fundamentals. Variables, functions, conditions, loops, arrays and objects.
- JavaScript in the browser. Selecting elements, handling events, changing the page.
- Build something small and real: a form with validation, an image gallery, a simple calculator.
- Validate and test with the tools above.
Build while you learn. Reading tutorials without typing code gives a feeling of progress that disappears at the first blank file.
A minimal setup
You need very little to begin.
- A modern browser
- A free code editor
- A folder on your computer for your files
No server, framework or paid software is required to learn HTML, CSS and basic JavaScript. Frameworks are easier to understand once the fundamentals are in place.
Getting unstuck
- Read the error message in the browser console. It usually names the file and line.
- Reduce the problem to the smallest example that still fails.
- Look up the specific element, property or method on MDN.
- Check for typing errors, unclosed tags and missing brackets. They cause most beginner problems.
- When asking for help in a forum, share the smallest example and say what you expected.
Using AI while learning
An AI assistant can explain an error, describe what a piece of code does or suggest an approach. Used well, it speeds up learning. Ask it to explain, then write the code yourself, and verify what it tells you against MDN. AI tools can produce outdated or incorrect code with complete confidence.
How to judge other tutorials
- Check the date. Layout techniques and JavaScript practices have changed substantially.
- Prefer material that explains why something works.
- Be cautious with tutorials that begin with a framework before the basics.
- Compare with MDN when something seems odd.
Next step
If you manage a WordPress site, How to Create a WordPress Child Theme and When You Need One shows where your new HTML and CSS skills can be applied. For speed, continue with Website Performance Basics.
