CSS word-wrap property

CSS word-wrap

CSS word-wrap is used to allow long words to be broken to a new line.

Unlike word-break, overflow-wrap will only create a break if an entire word cannot be placed on its own line without overflowing.

CSS word-wrap property values,

  • normal : It specifies to use default line break rule.
  • break-word : In order to prevent overflow words can be broken.

Example

Try Yourself