Loading

<textarea> tag

  • In HTML forms, the <textarea> element is used to create a multi-line text input field. 
  • It is commonly used when you need to collect longer texts or messages from users. 

Example:

<!DOCTYPE html>
<html lang="en">


<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>


<body>
    <form>  
        Enter your address:<br>  
      <textarea rows="2" cols="20"></textarea>  
  </form>  
</body>


</html>

Output: