Horje

How to add HTML <textarea> placeholder Attribute with label Tag

A text area with a placeholder text.

Definition and Usage

The placeholder attribute specifies a short hint that describes the expected value of a text area.

The short hint is displayed in the text area before the user enters a value.


Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

Syntax

<textarea placeholder="text">

Attribute Values

Value Description
text Specifies a short hint that describes the expected value of the text area
index.html
Example: HTML
<label for="text">Who are you?</label><br>
<textarea rows="4" cols="50" placeholder="Describe yourself here..."></textarea>

Output should be:

How to add HTML <textarea> placeholder Attribute with label Tag




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin