Advertisement
Home Open Editor ❯

HTML <textarea> placeholder Attribute

Example

<form action="action.php">
  <textarea placeholder="please enter text here..." name="textareaText"></textarea>
  <br><br>
  <input type="submit" value="Submit">
</form>

Try this code ❯

Meaning

The placeholder attribute specifies a short bit of text that is used to help the user figure out what type of information to fill in for a form control.

Notes:


Standard Syntax

<textarea placeholder="text">...</textarea>


Advertisement

Attribute Values

Value Description
text Specifies a sample value or a brief description of the expected format.
Home Open Editor ❯
Advertisement