Which of the following property allows long words to be able to be broken and wrap onto the next line?

line-wrap
break-word
word-wrap
word-break

The correct answer is: C. word-wrap

The word-wrap property allows long words to be broken and wrapped onto the next line. It is a CSS property that controls how words are broken across lines. The word-wrap property can be used to prevent words from being hyphenated, or to force words to be hyphenated.

The line-wrap property is a CSS property that controls how lines are broken. It is similar to the word-wrap property, but it affects entire lines, not individual words. The line-wrap property can be used to prevent lines from being hyphenated, or to force lines to be hyphenated.

The break-word property is a CSS property that controls how words are broken across lines. It is similar to the word-wrap property, but it is more aggressive. The break-word property can be used to break words even if it results in a hyphenated word.

The word-break property is a CSS property that controls how words are broken across lines. It is similar to the word-wrap property, but it is more conservative. The word-break property will only break words if it is necessary to prevent the text from overflowing its container.

Exit mobile version