Use the rows attribute to set the visible number of lines in a text area. You can try to run the following code to implement rows attribute −
Example
<!DOCTYPE html> <html> <head> <title>HTML rows attribute</title> </head> <body> <form action = "/cgi-bin/hello_get.cgi" method = "get"> Enter subject <br /> <textarea rows = "5" cols = "50" name = "description"> </textarea><br> <input type = "submit" value = "submit" /> </form> </body> </html>