New in HTML5.

<input placeholder=””>

Sharing is caring!

Attribute of
Input As The Fundamental Form Element In HTML: Here's What It Does
What does <input placeholder=""> do?
Specifies placeholder text in a text-based input.

Code Example

<form>
 <label for="email">Email Address</label><br>
 <input id="email" name="email" type="email" placeholder="[email protected]">
</form>

Adam is a technical writer who specializes in developer documentation and tutorials.

Browser Support for placeholder

1041013511