Tryit Editor v1.8

Source Code:
<!DOCTYPE html> <html> <head> <style> p { max-height:50px; background-color:yellow; overflow:auto; } </style> </head> <body> <p>The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px.</p> </body> </html>
Result:
W3Schools.com - Try it yourself