Breaking space (opposite of non-breaking space)

HtmlHtml Entities

Html Problem Overview


While solving a little bug on a website caused by a non-breaking space ( ) I was wondering if there's an opposite.

Is there an HTML code for a breaking space, and if so, what is it?

I saw mention in this question about a zero-width space (​), but that won't give any width (obviously).

Does an HTML entity exist for a regular space?

Html Solutions


Solution 1 - Html

  is a regular space (by its numeric ASCII value).

Solution 2 - Html

If you are using HTML and you would like more than one space to to appear, will not work. The unfortunate part about   is it does not wrap properly because it is a non-breaking space.

For those that reached here looking for a solution, try the CSS

white-space: pre-wrap;

This will allow you to have multiple spaces side by side in a single line. It works great for chat programs.

Solution 3 - Html

There may be other blank entities (which won't compact to a single) but there is another workaround for doing some padding but still having some wrapping occur as required:

Use the "ZeroWidthSpace" html entity and alternate with either "nbsp" for clarity or simply a space character.

Solution 4 - Html

There are multiple html entities for regular white space, which allow breaking, for instance  

Read this article for more information: https://www.codetd.com/en/article/6915972

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSander KoedoodView Question on Stackoverflow
Solution 1 - HtmlBertView Answer on Stackoverflow
Solution 2 - HtmlCaseView Answer on Stackoverflow
Solution 3 - HtmlDennis BareisView Answer on Stackoverflow
Solution 4 - HtmlMulticolaureView Answer on Stackoverflow