HTML TEXT AREA

 

  • An HTML Textarea is a multi-line field for editing plain text.
  • It is a form and an inline element.
  • It is commonly used in contact forms, comment forms and more.
  • The <textarea> element defines an HTML Textarea.

HTML Textarea Attributes

  • rows: specifies an exact size in rows
  • cols: specifies an exact size in columns

placeholder: specifies a text placeholder that disappears when the textarea has been focused

Example:

<! DOCTYPE html> 

<html> 

        <head>

            <title>Text area</title>

        </head>

        <body>

            <textarea row="5" clos="35" placeholder="Message..."> </textarea>

        <body>

<html>

Output:

message

Message...