HTML CSS examples for CSS:Quiz
Set that text in the <p> element to wrap, even if it needs to split in the middle of a word.
<!DOCTYPE html> <html> <head> <style> p {<!--from w ww. j a v a2s . com--> width: 150px; border: 1px solid #000000; word-wrap: break-word; } </style> </head> <body> <p>This paragraph contains a very long word: asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfa.</p> </body> </html>