HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

placeholder

Description

The placeholder attribute for HTML specifies a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.

The attribute must not have a value that contains U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR) characters. The attribute should not be used as an alternative to a label. The title attribute is more appropriate for a longer hint or other advisory text.

Syntax

placeholder="value"

Examples

1 · HTML

2 · JS