confi-emacs-inicial/elpa/ac-html-20151005.731/completion-data/html-attributes-short-docs/input-placeholder

6 lines
704 B
Plaintext
Raw Normal View History

2020-08-02 07:57:21 +02:00
placeholder [HTML5]
A hint to the user of what can be entered in the control . The placeholder text must not contain carriage returns or line-feeds. This attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored.
Note:
Do not use the placeholder attribute instead of a <label> element. Their purposes are different: the <label> attribute describes the role of the form element; that is, it indicates what kind of information is expected, the placeholder attribute is a hint about the format the content should take. There are cases in which the placeholder attribute is never displayed to the user, so the form must be understandable without it.