Tryit Editor v1.8

Source Code:
<!DOCTYPE html> <html> <head> <style> p.test1 { width:9em; border:1px solid #000000; word-break:keep-all; } p.test2 { width:9em; border:1px solid #000000; word-break:break-all; } </style> </head> <body> <p class="test1"> This paragraph contains some text. This line will-break-at-hyphenates.</p> <p class="test2"> This paragraph contains some text: The lines will break at any character.</p> <p><b>Note:</b> The word-break property does not work in Opera.</p> </body> </html>
Result:
W3Schools.com - Try it yourself