ArticleslgStudy

science

Zero-width space

Zero-width 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 Zero-width space rather than just read about it. In short: The zero-width space (rendered: ​; HTML entity: ​ or ​), abbreviated ZWSP, is a non-printing character used in computerized typesetting to indicate where the word boundaries are, without actually displaying a visible space in the rendered text. This enables text-processing systems for scripts that do not use explicit spacing to recognize where word boundaries are for the purpose of handling line…

Zero-width space — main illustration
Zero-width space — illustration

Key takeaways

  • Zero-width 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 Zero-width space to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Zero-width space from memory before moving on to harder problems.

Reference excerpt

The zero-width space (rendered: ​; HTML entity: ​ or ​), abbreviated ZWSP, is a non-printing character used in computerized typesetting to indicate where the word boundaries are, without actually displaying a visible space in the rendered text. This enables text-processing systems for scripts that do not use explicit spacing to recognize where word boundaries are for the purpose of handling line breaks appropriately. The zero-width space is Unicode character U+200B, and is located in the Unicode General Punctuation block. In HTML, it can be represented by the character entity reference ​.

Purpose The zero-width space marks a potential line break without hyphenation. Its semantics and HTML implementation are similar to the soft hyphen, but soft hyphens display a hyphen character at the point where the line is broken. The zero-width space can be used to mark word breaks in languages without visible space between words, such as Thai, Myanmar, Khmer, and Japanese. In justified text, the rendering engine may add inter-character spacing, also known as letter spacing, between letters separated by a zero-width space, unlike around fixed-width spaces.

Example To show the effect of the zero-width space in text, the following words have been separated with zero-width spaces:

By contrast, the following words have not been separated:

The first text is broken into lines but only at word boundaries, and resizing the browser window will re-break the text accordingly, while the second text is not broken at all.

Usage

HTML In HTML pages, the HTML element <wbr> functions as a zero-width space. In Internet Explorer 6, the zero-width space was not supported in some fonts.

Prohibition in domain names ICANN rules prohibit domain names from containing non-displayed characters, including the zero-width space, and most browsers prohibit their use within domain names because they can be used to create a homograph attack, where a malicious URL is visually indistinguishable from a legitimate one.

Encoding

The zero-width space character is encoded in Unicode as U+200B ZERO WIDTH SPACE. In HTML, it can be referenced as &ZeroWidthSpace;, &#8203; or &#x200B;. Additionally, the character entities &NegativeThickSpace;, &NegativeMediumSpace;, &NegativeThinSpace;, and &NegativeVeryThinSpace; all also refer to the zero-width space, contrary to what their names suggest. The TeX representation is \hskip0pt; the LaTeX representation is \hspace{0pt}; and the groff representation is \:. As the zero-width space is an invisible character, it is convenient to have a visible symbol for it on keyboards and in keyboard documentation. The standard ISO/IEC 9995-7 gives symbol 72 for the zero-width space, which is also catalogued in IEC 60417 as reference 6072-10.

See also Hair space Whitespace character – including a table comparing various space-like characters Word divider Word wrapping Word joiner (U+2060) U+FEFF (U+FEFF), which is named "Zero Width No-Break Space" in Unicode Zero-width joiner (U+200D) Zero-width non-joiner (U+200C)

References

Citations

Sources

Illustrations

Zero-width space: Symbol for use on keyboards
Symbol for use on keyboards

Worked examples

Example 1 — a first encounter with Zero-width space

Start with the simplest possible case. Write down what Zero-width 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 Zero-width 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 Zero-width 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 Zero-width space

In research
Zero-width 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 Zero-width 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
Zero-width space is common in secondary-school and first-year university syllabi. It links to neighbouring topics Control characters, Typography, Unicode formatting code points, so understanding it makes those chapters shorter.
In everyday life
Look for Zero-width 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 “Zero-width space” →

How to study Zero-width space in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Zero-width 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 Zero-width space out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Zero-width space in simple terms?

The zero-width space (rendered: ​; HTML entity: &ZeroWidthSpace; or &#8203;), abbreviated ZWSP, is a non-printing character used in computerized typesetting to indicate where the word boundaries are, without actually displaying a visible space in the rendered text. This enables text-processing syst…

Why does Zero-width 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 Zero-width 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 Zero-width space.

Tags

  • Control characters
  • Typography
  • Unicode formatting code points
  • Whitespace

Keep exploring