Learn HTML, CSS and JavaScript
How a web page is built, from the first tag to the code that makes it react. Fourteen lessons start with the two halves of a website and the kinds of site there are. Then come HTML for the content, CSS for the look and the layout, and JavaScript for what the page does. It assumes nothing. It stops at the browser. Frameworks, build tools and building an API are separate subjects.
Not started
0 of 14 lessons done
Level 1 · How a website works
score0200/11 wordsThe part that runs in your browser, and the part on a server. The kinds of site you can build, and the tools that build one for you.
- Front End and Back EndWhat happens between a browser and a server when a page opens. The two halves of a website, and the three languages every browser reads.9 min5 terms
- Static and Dynamic WebsitesWhy some sites send the same file to everyone while others build each page as you ask. Where a web app fits, and how to tell which one you need.9 min3 terms
- CMS and WordPressWhat a content management system does, and why WordPress runs so much of the web. How it differs from a website builder you rent.9 min3 terms
Level 2 · HTML
score20400/10 wordsThe tags that hold a page together. Picking the tag that says what each part is, and the forms people type into.
- HTML Elements and AttributesHow HTML marks up a page with tags. What an element is, what an attribute adds to it, and how elements sit inside one another.11 min3 terms
- Semantic HTML ElementsWhy a nav, a main and a button beat a pile of div tags. How the right tag helps screen readers, keyboards and search engines.10 min4 terms
- HTML Forms and InputsHow a form collects what people type and sends it to a server. The input types, labels and checks that make a form easy to fill in.12 min3 terms
Level 3 · CSS basics
score40550/7 wordsHow a CSS rule picks the parts it styles, and which rule wins. The box every element sits in.
- CSS Selectors and SpecificityHow a CSS rule picks the parts of a page it styles. Why one rule beats another, and how the specificity score breaks the tie.13 min4 terms
- The CSS Box ModelWhy every part of a page is a box with padding, a border and a margin. How box-sizing changes its width, and which unit to size it in.12 min3 terms
Level 4 · Page layout
score55800/13 wordsPutting boxes in rows, columns and fixed spots. Making one page fit a phone and a wide screen, and the tools that speed it up.
- Flexbox, Grid and PositionThree ways CSS places boxes on a page. When Flexbox fits a row, when CSS Grid fits rows and columns, and when position pins one box.14 min3 terms
- Responsive Web DesignHow one page fits a phone, a tablet and a wide screen. The viewport tag, media queries and breakpoints, and why phones come first.12 min5 terms
- CSS Frameworks and SassHow CSS variables, Sass, Bootstrap and Tailwind save you from writing the same styles twice. What each one adds, and what it costs.13 min5 terms
Level 5 · JavaScript in the page
score801000/10 wordsChange the page when someone clicks. Ask a server for data. Keep small facts in the browser from one visit to the next.
- JavaScript and the DOMHow JavaScript finds a part of the page and changes it. What the DOM tree is, and how an event listener reacts to a click.13 min3 terms
- Fetch API and JSONHow a page asks a server for data without loading a new page. Using fetch with await, reading JSON, and checking that the reply was not an error.13 min4 terms
- Cookies and Local StorageTwo ways a site keeps small facts in your browser. Why a cookie goes to the server on every request, and local storage stays put.12 min3 terms
Words in this course
The 51 glossary entries this course teaches, in the order it teaches them. Open any of them on its own.
- Web Development
- Web Browser
- Front End
- Back End
- Full-Stack Development
- Static Website
- Dynamic Website
- Web Application
- Content Management System (CMS)
- WordPress
- Website Builder
- HyperText Markup Language (HTML)
- HTML Element
- HTML Attribute
- Semantic HTML
- Screen Reader
- ARIA Attributes
- Accessibility (a11y)
- HTML Form
- HTML Input Element
- HTTP Method
- Cascading Style Sheets (CSS)
- CSS Selector
- CSS Pseudo-Class
- CSS Specificity
- CSS Box Model
- CSS Units
- Browser DevTools
- Flexbox
- CSS Grid
- CSS Position
- Responsive Web Design
- Viewport Meta Tag
- Media Query
- Responsive Breakpoint
- Mobile-First Design
- CSS Custom Properties
- Sass
- CSS Framework
- Bootstrap
- Tailwind CSS
- JavaScript
- Document Object Model (DOM)
- Browser Event
- Fetch API
- Async/Await
- JavaScript Object Notation (JSON)
- HTTP Status Code
- HTTP Cookie
- Local Storage
- HTTP Header