css pre set max characters
<!DOCTYPE html> <html> <head> <title>HTML pre Tag</title> </head> <body> <pre rows = "5" cols = "40" maxlength = "100" name = "description"> Enter answer here... </pre> </body> </html>
Source: www.tutorialspoint.com