EN
HTML - non-breaking space character
3
points
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> <span>Element2</span>
// ONLINE-RUNNER:browser;
<p>Example text</p>