Space (punctuation)
A space is a punctuation convention for providing interword separation in some scripts, including the Latin, Cyrillic, and Arabic.Not all languages use spaces between words; the ancient Latin and Greek did not. Spaces were not used to separate words until roughly 600–800 AD. (See interword separation for more on the history.) Traditionally, all CJK languages have no space: modern Chinese and Japanese still do not, but modern Korean uses space.
In computer programming, the normal space corresponds to Unicode and ASCII character 32, or U+0020. In HTML and XML multiple spaces or new line characters collapse into one single space, unless they are contained in a HTML tag like <pre>, the xml:space="preserve" HTML attribute is used, or CSS defines whitespace="pre" (or pre-line or pre-wrap). The special non-breaking-space always gives a non-collapsable space character. This should however not be done to indent text.
Other kinds of spaces exist for special uses: for example an em dash can optionally be surrounded with a so-called hair space, Unicode character 8202, or U+200A. This space should be much thinner than a normal space, and is seldom used on its own. It can be written in HTML by using the numeric character entity   or  . Unfortunately, very few user agents are able to render a hair space correctly: in most cases the result is an unwanted symbol or a question mark on the screen (depending on the font).
| Normal space | left right |
| Hair space with em dash | left — right |
| (em dash without hair spaces | left—right) |
In programming language syntax, spaces are frequently used to explicitly separate tokens. Aside from this use, spaces and other whitespace are usually ignored by most modern programming languages; Python is one exception.
In word processors and text editorss, if a line on a screen is shorter than the width of the screen or window, then the empty space to the right usually does not correspond with space characters in the file: there is simply a code indicating that the next text should be put on a new line. Thus, the size of the file is not made unnecessarily larger. If there are space characters, one usually does not see the difference; text editors and word processors often have an option to make them visible. Also, if there is a space character, the cursor can move there, otherwise usually not.