CSS word-break Property

This word-break property is used to specify how to break the word when the word reached at end of the line. The line breaks in the text can occur in certain spaces, like when there is a space or a hyphen.

The word-break property specifies how words should break when reaching the end of a line.

Properties: There are word-break property which are given below:

  • normal
  • break-all
  • keep-all
  • initial
  • inherit

CSS Syntax

word-break: normal|break-all|keep-all|break-word|initial|inherit;

Example -