CSS word-wrap Property


CSS word wrap property is used to break the long words and wrap onto the next line. This property is used to prevent overflow when an unbreakable string is too long to fit in the containing box.

The word-wrap property allows long words to be able to be broken and wrap onto the next line.

CSS Syntax

word-wrap: normal|break-word|initial|inherit;

Example -