Space (U+0020) | The Most Used Invisible Character

The space character (U+0020) is the most common separator in digital text. Here's what makes it special.

What Is the Space Character (U+0020)?

The Space (U+0020) is a Unicode whitespace character used to create gaps between words or elements in digital text. Generated by pressing the spacebar, it’s invisible but essential for readability and formatting.

Space Character Shortcodes (Quick Reference)

Type Code
Unicode U+0020
HTML Code  or   (non-breaking)
HEX Code
CSS Code \0020
ALT Code Hold Alt + 32 (Numpad required)

How to Type the Space Character?

1. Keyboard Shortcut (Alt Code)

  • Windows: Hold Alt, type 32 on the Numpad, release Alt.
    (Ensure NumLock is ON.)
  • Mac/Linux: Use the spacebar or Unicode input (Ctrl+Shift+U then 0020).

2. Copy-Paste Method

Copy from here: (highlight the gap between quotes) or use the table above.

How to Add Space in HTML & CSS?

HTML Methods

  • Regular Space: Space Character → Space Character
  • Non-Breaking Space ( ): Prevents line breaks (e.g., 10 PM).

CSS Method

css

.insert-space::after {
 content: '\0020'; /* Adds space after an element */
} 

Important Notes About U+0020

  1. Non-Breaking Space (U+00A0):   for sticky spaces (e.g., dates, units).
  2. Zero-Width Space (U+200B): Invisible separator for coding/text-wrapping.
  3. Accessibility: Screen readers ignore extra spaces; use   sparingly.