There are cases where nonbreaking space cannot help:
- the word contains a hyphen (e.g. web-developer);
hyphens: auto
is used for the container element to do 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 solely work when styles are enabled.