kb/data/developer.mozilla.org/en-US/docs/Glossary/Whitespace-0.md

11 KiB

title chunk source category tags date_saved instance
Whitespace - Glossary | MDN 1/3 https://developer.mozilla.org/en-US/docs/Glossary/Whitespace reference web, html, css, javascript, documentation 2026-05-05T05:49:26.049959+00:00 kb-cron

MDN HTML HTML: Markup language

HTML reference

HTML guides

Markup languages

CSS CSS: Styling language

CSS reference

CSS guides

Layout cookbook

JavaScriptJS JavaScript: Scripting language

JS reference

JS guides

Web APIs Web APIs: Programming interfaces

Web API reference

Web API guides

All All web technology

Technologies

Topics

Learn Learn web development

Frontend developer course

Learn HTML

Learn CSS

Learn JavaScript

Tools Discover our tools

About Get to know MDN better

Blog

  1. Glossary
  2. Whitespace

Whitespace

Whitespace refers to characters which are used to provide horizontal or vertical space between other characters. Whitespace is often used to separate tokens in HTML, CSS, JavaScript, and other computer languages. Whitespace characters and their usage vary among languages.

In this article

In HTML

The Infra Living Standard defines five characters as "ASCII whitespace": U+0009 TAB, U+000A LF, U+000C FF, U+000D CR, and U+0020 SPACE.

In JavaScript

The ECMAScript Language Specification defines several Unicode code points as "white space": U+0009 CHARACTER TABULATION , U+000B LINE TABULATION , U+000C FORM FEED , U+0020 SPACE , U+00A0 NO-BREAK SPACE , U+FEFF ZERO WIDTH NO-BREAK SPACE , and any other Unicode "Space_Separator" code points .

See also