Languages
[Edit]
EN

HTML - empty character (empty space)

7 points
Created by:
user4838
308

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

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