Typing code faster for web developers
Web development means writing in three languages at once. HTML describes the parts of a page, like headings, links and buttons. CSS describes how those parts look. JavaScript makes the page do things when someone clicks or types. Each one has its own favourite symbols, and you switch between them many times a day.
If you already touch type letters, the symbols are where most of your time goes. This article looks at the symbols in each language, how to practise them, and how to use editor features without losing the skill.
HTML is mostly angle brackets and quotes
<a href="/contact" class="btn">Contact us</a>
<img src="logo.png" alt="Company logo">
In these two short lines you type six angle brackets, plus =, " and / several times each. With a US keyboard, < is Shift + comma and > is Shift + full stop. The right middle finger types the comma key and the right ring finger types the full stop key, so hold the left Shift with your left little finger. The =, the " and the / all belong to the right little finger.
A pattern you type all the time in HTML is =" followed later by a closing ". Practise =" as one movement. Your right little finger presses = on the number row, then moves down to the quote key while your left little finger holds Shift.
CSS is braces, colons and semicolons
.btn {
color: #ffffff;
background-color: #1a73e8;
padding: 8px 16px;
}
Every CSS rule has { and }, a : after each property name and a ; at the end of each line. All four are typed by the right little finger. The ; is its home key, so that one is easy. The : is the same key with the left Shift held. For { and } the little finger reaches up to the [ and ] keys while the left little finger holds Shift.
The # in a colour code is Shift + 3. Here you hold the right Shift and press 3 with the left middle finger. The hyphen in names like background-color is on the right little finger again.
JavaScript mixes all of it
const button = document.querySelector(".btn");
button.addEventListener("click", () => {
console.log("Clicked!");
});
Here you have round brackets, braces, double quotes, full stops and a semicolon at the end of each statement. There is also the arrow =>, which is = followed by Shift + full stop. The ! is Shift + 1, typed by the left little finger while the right little finger holds the right Shift.
JavaScript also uses ===, &&, || and backticks for template strings. The backtick key sits in the top left corner, to the left of 1, and the left little finger reaches up for it. The | is Shift + \, on the right little finger.
You may notice that the right little finger appears in almost every line of all three examples. That is normal. It is also why many web developers feel slow at first when they move from typing emails to typing code.
Practice ideas for symbol keys
Short practice on most days is enough. Ten minutes a day is a good amount.
- Type pairs on their own. Practise
<>,{},(),[],""and''as quick two-key movements. - Type small patterns from real code, such as
=",);,:and=>. These come up again and again. - Copy a short file from one of your own projects, line by line, without looking at your hands. Go slowly and aim for no mistakes.
- Check your speed once a week. Checking every day only makes you rush.
The opposite Shift rule matters a lot here. If you press both Shift and " with the right hand, your little finger has to do two jobs at once. Hold the left Shift for right-hand symbols and the right Shift for left-hand symbols.
When to let the editor help
Modern code editors do a lot for you. They close brackets and quotes, so you type ( and the editor adds ). They offer snippets, which are short words that grow into larger blocks of code when you press Tab. Many editors support Emmet, where an abbreviation like ul>li*3 builds a list with three items. Autocomplete finishes long names like addEventListener after a few letters.
Use these. They save time and stop small mistakes. But there are times when typing by hand still matters.
- When you edit the middle of a line, auto-closing can add a bracket you did not want, and you have to delete it.
- When you work in a terminal, on a server or in a browser console, these helpers are often missing.
- When you sit a coding test or a technical interview, the editor may be very plain.
- When you are learning a new language, typing the full code helps you remember how it is built.
If your hands already know where every symbol is, the editor's help is a bonus. If they don't, you feel lost each time the help is not there.
For the finger rules for each symbol, read touch typing for programmers. If you work with data too, see typing for data analysts.
In Typran, the Advanced level covers the Shift key for symbols and punctuation. The Expert level has lessons for symbols such as ( ) - + = / and lessons with symbols inside sentences. You can start with the free sample lessons and check your speed later with the speed test (with a level subscription).