Style wordBreak Property
Style wordBreak Property
The wordBreak property is used to define line-breaking rules for non-CJK scripts like Chinese, Japanese and Korean.
Syntax:-
Its syntax is:- object.style.wordBreak OR object.style.wordBreak = normal | break-all | keep-all | initial | inherit
Return:-
Its return is:- string having word-break property of an element
Further Explanation:-
Value | Description |
---|---|
normal | Break words according to their usual rules |
break-all | Lines may break between any two letters. |
keep-all | Breaks are prohibited between pairs of letters. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |