vs white-space:nowrap
There are cases where nonbreaking space cannot help:
- word contains hyphen (e.g. web-developer);
hyphens: auto
is used for element containing text to make hyphenation automatically.
In these cases, white-space: nowrap
is useful. Also, nonbreaking space works regardless of whether styles are applied to document while CSS rules work solely when styles are enabled.