ArticleslgStudy

science

Non-breaking space

Non-breaking space is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Non-breaking space rather than just read about it. In short: In word processing and digital typesetting, a non-breaking space ( ), also called NBSP, required space, hard space, or fixed space (in most typefaces, it is not of fixed width), is a space character that prevents an automatic line break at its position. In some formats, including HTML, it also prevents consecutive whitespace characters from collapsing into a single space.

Key takeaways

  • Non-breaking space belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Non-breaking space to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Non-breaking space from memory before moving on to harder problems.

Reference excerpt

In word processing and digital typesetting, a non-breaking space ( ), also called NBSP, required space, hard space, or fixed space (in most typefaces, it is not of fixed width), is a space character that prevents an automatic line break at its position. In some formats, including HTML, it also prevents consecutive whitespace characters from collapsing into a single space. Non-breaking space characters with other widths also exist.

Behavior Despite having layout and uses similar to those of the standard space character, it differs in contextual behavior. Text-processing software generally assumes that an automatic line break may be inserted anywhere a space character occurs; a non-breaking space prevents this from happening, if it is supported by the software. To show the effect of the non-breaking space in text, the following words have been separated with non-breaking spaces. No matter the width of the window, no line breaks are displayed:

By contrast, words separated with ordinary spaces will reflow as the window size changes:

In this example, most spaces are non-breaking, but every third space is an ordinary breaking space. This shows how groups of words can be prevented from being divided across lines by automatic line breaks:

Uses

Numbers with units Text-processing software can divide expressions like "100 km" when they do not quite fit at the end of a line. A non-breaking space between "100" and "km" prevents this, and guarantees that "100 km" will not be broken—if it does not fit at the end of a line, it is moved in its entirety to the next line. Many style guides recommend that numbers and the associated units not be split across lines; non-breaking spaces are used to ensure this.

Spacing punctuation in French In French typography, non-breaking spaces are used before "high punctuation" (:, ;, ?, and !), on the interior side of guillemets (« and »), and before footnote references. In the case of ;, ?, !, and footnote references (unless enclosed by parentheses), a narrow non-breaking space is used.

Multi-part abbreviations in German In German typography, it is used between multi-part abbreviations (e.g., "z. B.", "d. h.", "v. l. n. r.", which mean 'for example', 'that is', and 'from left to right' respectively).

Computer languages

Non-collapsing behavior Non-breaking spaces are used in plain text file formats such as SGML, HTML, TeX, and LaTeX, whose rendering engines are programmed to treat sequences of whitespace characters (space, newline, tab, form feed, etc.) as if they were a single character (but this behavior can be overridden). Such "collapsing" of whitespace allows the author to neatly arrange the source text using line breaks, indentation and other forms of spacing without affecting the final typeset result. To show the non-collapsing behavior of the non-breaking space, the following words have been separated with an increasing number of non-breaking spaces:

In contrast, the first few words of this phrase have been separated with many ordinary spaces but are displayed (rendered by the browser engine) as single spaces:

Non-void or non-missing behavior In programming languages or in software analysis languages (such as SAS or R) non-breaking spaces can be useful to fill character-type variables with spaces that are not to be considered insignificant. In general, a string filled with spaces can be interpreted as an empty string or a string of missing data. Replacing ordinary spaces with non-breaking spaces helps resolving the ambiguity between "space", "void", and "missing".

Variations

Narrow non-breaking space U+202F   NARROW NO-BREAK SPACE (NNBSP) is a non-breaking space that is narrower than the standard non-breaking space (U+00A0). For Mongolian, it is usually one third the width of a normal space; in other contexts, its width is about 70% of the normal space but may resemble that of the thin space (U+2009), at least with some fonts. This text replaces spaces with narrow non-breaking spaces:

Narrow non-breaking space was introduced in 1999 in Unicode 3.0 for Mongolian, to separate a suffix from the word stem without indicating a word boundary. It also triggers special shaping of those suffixes. Starting in Unicode 16.0, it is no longer recommended for this purpose because the Mongolian vowel separator (U+180E) has taken on this function. In French typography, it is called espace fine insécable and is used before ;, ?, and ! (but not :, before which a regular non-breaking space is used). Additionally, a footnote reference is preceded by a narrow non-breaking space (unless it is enclosed by parentheses, in which case a regular non-breaking space is used). The narrow non-breaking space is used in numbers as a group separator in French (starting in Unicode CLDR 34) and Venetian (starting in Unicode CLDR 44). In Spanish, the Royal Spanish Academy and Association of Academies of the Spanish Language's Diccionario panhispánico de dudas prescribes a small space as the number group separator, although this is not the case in Unicode's Common Locale Data Repository (CLDR).

Figure space

A figure space is a non-breaking space whose width is equal to the figure (0–9) characters.

Unicode Unicode has multiple non-breaking space characters. Another international standard, ISO/IEC 9995-7 (Symbols used to represent functions), defines symbols that can be used on keyboards and in keyboard documentation for some of these characters. These symbols are also contained in ISO 7000 (Graphical symbols for use on equipment – Registered symbols) or IEC 60417 (Graphical symbols for use on equipment).

U+FEFF ZERO WIDTH NO-BREAK SPACE is a byte order mark, whose use in text is deemed an "unsupported character" in Unicode (U+2060 WORD JOINER should be used if the need arises).

See also Hyphen § Nonbreaking hyphens Punctuation – Marks to indicate pacing of written text Sentence spacing in digital media – Horizontal width of inter-sentence space Space (punctuation) – Blank area that separates text Space (punctuation) § Non-breaking space, for applications Zero-width space – Special character in text processing, a non-spacing break Word joiner – Character in text processing, prevents line-breaking without producing a space Widows and orphans – In typography, an isolated line of text starting/ending a page Non-printing character in word processors – Formatting marks for content design Typographic alignment § Justified

Notes

References

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Non-breaking space

Start with the simplest possible case. Write down what Non-breaking space claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Non-breaking space before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Non-breaking space ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Non-breaking space

In research
Non-breaking space appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Non-breaking space in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Non-breaking space is common in secondary-school and first-year university syllabi. It links to neighbouring topics Control characters, Unicode formatting code points, Whitespace, so understanding it makes those chapters shorter.
In everyday life
Look for Non-breaking space outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Non-breaking space” →

How to study Non-breaking space in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Non-breaking space means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Non-breaking space out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Non-breaking space in simple terms?

In word processing and digital typesetting, a non-breaking space ( ), also called NBSP, required space, hard space, or fixed space (in most typefaces, it is not of fixed width), is a space character that prevents an automatic line break at its position. In some formats, including HTML, it also prev…

Why does Non-breaking space matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Non-breaking space?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Non-breaking space.

Tags

  • Control characters
  • Unicode formatting code points
  • Whitespace

Keep exploring