How do we set the visible number of lines in a text area in HTML?

HTMLWeb DevelopmentFront End Technology

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>
raja
Published on 14-Mar-2018 14:49:18
Advertisements