~/devtype

HTML & CSS Typing Speed Test

HTML is angle brackets and quoted attributes; CSS is colons, semicolons, and hyphenated property names. Together they form a symbol vocabulary completely different from programming languages — and from prose.

LV 1
Level 0 / 100 XP
Best 0 WPM
main.js
00 wpm
00%
0s
1
Just start typing or click the code
Esc restart Enter new line, indentation is skipped for you

Markup and Stylesheet Finger Patterns

Every HTML element is wrapped in `<` and `>` — shifted comma and period — with closing tags adding the forward slash. Attributes chain the pattern `name="value"` with equals and double quotes, so a single tag like `<input type="email" required />` touches five different symbol keys. Practicing tag-attribute rhythm is the fastest way to make markup feel effortless.

CSS has its own signature: kebab-case property names make the hyphen a mid-word regular (`grid-template-columns`), every declaration ends colon-space-value-semicolon, and functions like `repeat(auto-fit, minmax(250px, 1fr))` nest parentheses with commas and units. Media queries add `@` and pseudo-classes prefix selectors with one or two colons.

Key Drills for HTML & CSS:

  • Tag as a gesture: Type `<div>` open-name-close as one motion. The angle bracket pair should never require thought.
  • Hyphen without hesitation: CSS properties are kebab-case. Drill `-` mid-word until `align-items` flows like a single word.
  • End with semicolon: Every CSS declaration terminates with `;`. Make it automatic so missing semicolons never break a rule.

Sample Drill: CSS Grid Responsive Layout

Responsive layouts using pure CSS Grid classes.

html-flex · easy
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

All 15 HTML & CSS Drills

Every session picks a random drill from this pool. Use the difficulty filter above to stay on easy warm-ups or jump straight to the hard ones.

  • CSS Grid Responsive Layout easy

    Responsive layouts using pure CSS Grid classes.

  • Flexbox Centering & Gaps easy

    Centering content with flexbox, gap, and media queries.

  • Accessible Nav Menu easy

    A labelled nav landmark that marks the current page link.

  • Figure with Caption easy

    A lazy-loaded image with alt text, dimensions, and a caption.

  • CSS Custom Properties easy

    Define design tokens on :root and reuse them with var().

  • Button Hover & Focus easy

    Smooth hover and keyboard focus styles for a button.

  • Semantic Form Markup medium

    Accessible form with labels, required inputs, and buttons.

  • Wrapping Flex Cards medium

    Equal-height wrapping cards with footers pinned to the bottom.

  • Semantic Blog Article medium

    An article with a header, machine-readable date, and tag footer.

  • Skip to Content Link medium

    A keyboard skip link that stays hidden until it gets focus.

  • Details FAQ Toggle medium

    A no-JS FAQ disclosure using details, summary, and [open].

  • Grid Template Areas hard

    A full-page app shell laid out with named grid areas.

  • Native Confirm Dialog hard

    A dialog element with a method=dialog form and styled backdrop.

  • Container Query Card hard

    Switch a card to a two-column grid based on its own width.

  • Accessible Data Table hard

    A captioned table with scoped headers and numeric alignment.

The Symbols That Slow You Down

The keystrokes below are where HTML & CSS typing speed is won or lost. Key positions shown for QWERTY — the pattern transfers to any layout, just on different physical keys.

Symbol Used For Keys How to Drill It
<> Tag brackets < as Shift+Comma, > as Shift+Period Wraps every element. Open-name-close should be one gesture: `<div>` typed as a unit.
</> Closing tag / unshifted, then the <> pair The slash before the name distinguishes closers. `</section>` flows only if the slash costs nothing.
="…" Attribute assignment = unshifted, then quotes as Shift+Apostrophe `name="value"` — equals, quote, content, quote. The quote pair around values must be reflexive.
# ID selector Shift+3 `#header` in CSS. Shift-3 at selector starts, distinct from the period that starts classes.
- Kebab-case hyphen Unshifted hyphen `grid-template-columns`, `aria-label` — hyphens mid-word everywhere. They must not break your word rhythm.
; Declaration end Unshifted semicolon Every CSS rule ends here. The right pinky finishes the thought automatically.

Common HTML & CSS Typing Mistakes

  • ✗ Hesitating on the hyphen inside CSS properties — drill `font-size`, `align-items`, and `z-index` as single words.
  • ✗ Quote confusion: HTML attributes use double quotes while JS templates use backticks. Context-switch cleanly.
  • ✗ Closing tags out of order in nested markup — practice typing complete element pairs (`<li>...</li>`) before the content.

What's a Good HTML & CSS Typing Speed?

Markup types faster than code once tag gestures are automatic: 40–55 WPM is a solid working speed, and 60+ WPM with 97% accuracy is excellent. If nested tags slow you to 30, drill open-close pairs rather than individual characters.