Languages
[Edit]
EN

HTML - non-breaking space character

3 points
Created by:
Eshaal-Wilkinson
774

In this article we would like to show you how to use non-breaking spaces in HTML.

Non-breaking space is an character entity. To insert a non-breaking space we use:  

We use non-braking spaces to:

  • Prevent line break between certain words or web page elements
  • Make white space in text or between two web page elements.

Practical example:

// ONLINE-RUNNER:browser;

<span>Element1</span>&nbsp;<span>Element2</span>
// ONLINE-RUNNER:browser;

<p>Example&nbsp;text</p>
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.

HTML

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