normal space > < normal space
letter "n" >n< letter "n"
An HTML named entity consists of a mixed-case name which is preceded by an ampersand (&) and followed by a semicolon (;). Web browsers which "understand" a particular named entity will replace it with the appropriate glyph or typographic function; others will simply display it as a character string. View this page with an old browser (v.4 or earlier) to see examples of such behavior.
The Hypertext Markup Language (HTML), as used by Web browsers, treats spaces as one of several kinds of "whitespace". Ordinarily, browsers collapse sequences of whitespace definitions into a single space, and nearly every kind of whitespace also indicates a point at which a line of text may be wrapped to fit into an open window. An example of whitepace collapse follows:
one normal space > < one normal space
two normal spaces > < two normal spaces
The HTML entity " " is the glyph-less character for a non-breaking space. The distinguishing features of this character are twofold: it is not collapsed together with adjacent whitespace, and it is not a point at which a line of text may be wrapped.
non-breaking space > < non-breaking space
two non-breaking spaces > < two non-breaking spaces
three non-breaking spaces > < three non-breaking spaces
The HTML entity " " is the glyph-less character which corresponds to the classical "en space" of hand-set typography - a space whose width should be the same as the width of the letter "n" in the current font.
en space > < en space
letter "n" >n< letter "n"
The HTML entity "emsp" is the glyph-less character which corresponds to the classical "em space" of hand-set typography - a space whose width should be the same as the width of the letter "m" in the current font.
em space > < em space
letter "m" >m< letter "m"
The HTML entity "thinsp" is the glyph-less character which corresponds to a classical "thin space" of hand-set typography - a space whose width is clearly less than that of of the en space in the current font.
thin space > < thin space
letter "m" >m< letter "m"
non-breaking space > < non-breaking space
en space > < en space
em space > < em space
thin space > < thin space
The HTML numeric entities which correspond to various space definitions within the Unicode "General Punctuation" block, and which are not expressible as HTML named entities, are as follows:
Three-Per-Em (thick) Space ( ) > < Three-Per-Em (thick) Space ( )
Four-Per-Em (mid) Space ( ) > < Four-Per-Em (mid) Space ( )
Six-Per-Em Space ( ) > < Six-Per-Em Space ( )
Figure Space ( ) > < Figure Space ( )
Punctuation Space ( ) > < Punctuation Space ( )
Hair Space ( ) > < Hair Space ( )
Zero Width Space (​) >< Zero Width Space (​)
Narrow No-Break Space ( ) > < Narrow No-Break Space ( )
The presence of question marks (?) in place of centered spaces in the list above indicates that your browser cannot handle Unicode points of the specified values. Garbling of part of the line involving one of the centering angle brackets indicates that your browser has an incorrect
normal space > < normal space
Space ( ) > < Space ( )
No-Break Space > < No-Break Space
No-Break Space ( ) > < No-Break Space ( )
En Space > < En Space
En Space ( ) > < En Space ( )
Em Space > < Em Space
Em Space ( ) > < Em Space ( )
Three-Per-Em (thick) Space ( ) > < Three-Per-Em (thick) Space ( )
Four-Per-Em (mid) Space ( ) > < Four-Per-Em (mid) Space ( )
Six-Per-Em Space ( ) > < Six-Per-Em Space ( )
Figure Space ( ) > < Figure Space ( )
Punctuation Space ( ) > < Punctuation Space ( )
Thin Space > < Thin Space
Thin Space ( ) > < Thin Space ( )
Hair Space ( ) > < Hair Space ( )
Zero Width Space (​) >< Zero Width Space (​)
Narrow No-Break Space ( ) > < Narrow No-Break Space ( )
The only HTML space entity which NN 4 recognizes is nbsp. IE 5 recognizes all four of the HTML space entities.
In the comparison of 1,2,3 non-breaking spaces, the pixel widths of those spaces are 4, 7 and 10, respectively, in NN 4, but 7,13,19 in IE 5. This leads to the conclusions that (1) for NN, the actual widths of both the non-breaking space and the normal space are three pixels; (2) for IE, the actual widths of the non-breaking space is six pixels, while the width of the normal space is three pixels. So in the default font where this page was developed, the normal space width is half of an en space width.
NN 4 displays the non-breaking space at the same width as a normal space (3+1 pixels). IE 5 displays it at proper en-space width (6+1 pixels), but displays the en, em and thin spaces at the same width as a normal space.
NN4 displays all HTML numeric entities as question marks. IE5 displays the first five HTML numeric entities as ordinary (single) spaces, displays the next two HTML numeric entities as question marks, and garbles the last one in a way which destroys four characters and throws the intended centering out of alignment.
NN4 has the most limited capabilities with regard to additional space definitions, but it does correctly present the normal space and non-breaking space with the same width. IE5 has more extensive (though not complete or accurate) capabilities with regard to additional space definitions, but it incorrectly present the normal space and non-breaking space with different widths.