Articles → HTML 5 → Placeholder Attribute In Html5
Placeholder Attribute In Html5
Purpose
Syntax
<input type="text" placeholder=" " />
Example
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
</head>
<body>
<form>
<input type="text" placeholder="Enter your name here" />
</form>
</body>
</html>
Try It
Output
Browser Support
Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
---|
10.0 | 4.0 | 10.0 | 5.0 | 11.0 | Yes |