Languages
[Edit]
EN

HTML - non-breaking space character

3 points
Created by:
Eshaal-Wilkinson
384

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>

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