Languages
[Edit]
EN

HTML - empty character (empty space)

7 points
Created by:
user4838
668

In this article, we would like to show how in HTML create an empty character called zero-width space.

Invisible zero-width space example in HTML.
Invisible zero-width space example in HTML.

The zero-width space (), abbreviated ZWSP, is a non-printing character used in computerized typesetting to indicate word boundaries to text processing systems when using scripts that do not use explicit spacing, or after characters (such as the slash) that are not followed by a visible space but after which there may nevertheless be a line break - Wikipedia Source.

Quick solution (use ​ or ​):

// ONLINE-RUNNER:browser;

Hi&#8203;there!!! <br />

Hi&ZeroWidthSpace;there!!!

Note: the zero-width space character is encoded in Unicode as U+200B.

 

Alternative solution

// ONLINE-RUNNER:browser;

Hi<wbr />there!!! <br />

<span>Hi</span><span>there!!!</span>

References

  1. Zero-width space - Wikipedia

Alternative titles

  1. HTML - zero-width space
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join