/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: placeholder

[this page | pdf | back links]

The HTML placeholder attribute indicates the short hint describing the expected value of an <input> or <textarea> element.

 

Valid attribute values (when used with <input> and <textarea> elements) include:

 

Value

Description

text

A short hint that describes what is expected as input

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile