Printable

Coding Cheat Sheets

The syntax you actually use, on one page per language. Search it, print it, stick it next to your screen.

HTML Cheat Sheet

Printable HTML cheat sheet: structure, text, links, images, lists, tables, forms, media, SVG, canvas, SEO meta tags and responsive basics, with lesson links.

Open cheat sheet

CSS Cheat Sheet

Printable CSS cheat sheet: selectors, box model, Flexbox, Grid, centering, responsive design, container queries, dark mode and animations, with lesson links.

Open cheat sheet

JavaScript Cheat Sheet

Printable JavaScript cheat sheet: variables, loops, functions, array methods, objects, DOM, events, regex, dates, async/await and fetch, with lesson links.

Open cheat sheet

Python Cheat Sheet

Printable Python cheat sheet: syntax, strings, lists, dictionaries, loops, functions, classes, files and regex, with links to each full lesson.

Open cheat sheet

Java Cheat Sheet

Printable Java cheat sheet: syntax, strings, arrays, collections, classes, inheritance, interfaces, generics and streams, with links to each lesson.

Open cheat sheet

Kotlin Cheat Sheet

Printable Kotlin cheat sheet: syntax, null safety, when, collections, lambdas, data and sealed classes, extensions and coroutines, with lesson links.

Open cheat sheet

Swift Cheat Sheet

Printable Swift cheat sheet: syntax, optionals, collections, closures, structs, protocols, error handling, async/await and SwiftUI, with lesson links.

Open cheat sheet

C# Cheat Sheet

Printable C# cheat sheet: syntax, strings, collections, classes, interfaces, records, LINQ queries and async/await, with links to each full lesson.

Open cheat sheet

C++ Cheat Sheet

Printable C++ cheat sheet: syntax, strings, vectors, loops, functions, pointers, classes, STL containers and algorithms, with links to each lesson.

Open cheat sheet

PHP Cheat Sheet

Printable PHP cheat sheet: syntax, strings, arrays, functions, forms, sessions, PDO database queries and object-oriented PHP, with lesson links.

Open cheat sheet

Node.js Cheat Sheet

Printable Node.js cheat sheet: modules, npm scripts, fs and path, events, async patterns, Express routes and middleware, streams and testing.

Open cheat sheet

SQL Cheat Sheet

Printable SQL cheat sheet: SELECT, WHERE, ORDER BY, JOIN, GROUP BY, subqueries, CTEs, window functions and table design, with links to the lessons.

Open cheat sheet

MongoDB Cheat Sheet

Printable MongoDB cheat sheet: mongosh commands, find queries and operators, updates, indexes and the aggregation pipeline, with links to each lesson.

Open cheat sheet

Git Cheat Sheet

Printable Git cheat sheet: setup, commit, status, log, branch, merge, rebase, stash, reset and remote commands, from beginner to advanced, with lessons.

Open cheat sheet

GitHub Cheat Sheet

Printable GitHub cheat sheet: repositories, SSH keys, pull requests, issues, forks, GitHub Actions, Pages and the gh command line, with lesson links.

Open cheat sheet

Looking up a word, not syntax?

Our glossary explains programming and web terms in plain English.

Open the glossary

What a good cheat sheet is for

Nobody remembers every function name, flag or bit of syntax, including developers with years of experience. They look things up constantly. A cheat sheet makes that lookup fast: one page, organised by topic, with the syntax you actually use and a short example of each.

These cheat sheets are written for beginners and improvers rather than experts. Each entry shows the most common form first, uses realistic examples instead of placeholders, and links back to the lesson that explains it properly. They're meant to jog your memory about something you've already learned, not to replace the lesson.

What each cheat sheet covers

Every course has its own cheat sheet that follows the order of the course:

  • The HTML cheat sheet lists the common tags for text, links, images, lists, tables, forms and page structure, with the attributes you'll need most.
  • The CSS cheat sheet covers selectors, colours, the box model, flexbox, grid, media queries and transitions.
  • The JavaScript cheat sheet collects variables, functions, array and string methods, the DOM, events and async code.
  • The Python cheat sheet gathers syntax, strings, lists, dictionaries, functions, files and classes.
  • The SQL cheat sheet and Git cheat sheet list the queries and commands you'll type every day.

There are matching sheets for Java, Kotlin, Swift, C#, C++, PHP, Node.js, MongoDB and GitHub too.

Print it or keep it open

Each cheat sheet has a print button that produces a clean, ink-friendly layout, or you can save it as a PDF from the print dialog. Many people keep a printed copy next to their keyboard while learning, because glancing at paper is faster than switching windows.

If you prefer to keep it on screen, use the filter box at the top of each sheet. Type a word such as flex, join or append and only the matching sections stay visible.

How to use a cheat sheet while learning

Don't start with the cheat sheet. A list of syntax with no explanation is hard to learn from. Work through the lessons first, then use the sheet as a reminder.

Try writing your own version. After finishing a course, write your own one-page summary from memory, then compare it with ours. The gaps show you what to revise.

Use it during projects. Projects are where you'll need to recall many things at once. Keep the relevant sheet open while you build a project and you'll spend less time searching and more time coding.

Notice what you look up most. If you check the same thing three times, it's worth doing a few exercises on that topic until it sticks.

How the cheat sheets are organised

Every sheet starts with the basics and ends with the more advanced parts of the language, in the same order as the course. Sections are short cards with a heading, a few lines of syntax and a comment explaining each one. Below the cards, most sheets add a short guide to using them, and every sheet lists the lessons it draws on, so you can jump straight to a full explanation whenever a line isn't clear.

Cheat sheets for interview and exam revision

Before a coding interview or exam, a cheat sheet is an efficient way to refresh a whole language in twenty minutes. Read through it once, mark anything you're unsure about, then go back to those lessons and take the matching quiz. That loop of skimming, spotting gaps and testing yourself covers a lot of ground in a short time.