Home »

What is the purpose of ‘placeholder’ attribute in HTML5?

Question ListCategory: HTMLWhat is the purpose of ‘placeholder’ attribute in HTML5?
jully882 author asked 8 years ago
1 Answers
adamemliy16 author answered 8 years ago

HTML5 introduced a brand new attribute known as placeholder. This attribute on <input>; and
<textarea> elements provides a touch to the user of what may be entered within the field. The
placeholder text should not contain carriage returns or line-feeds.

Please login or Register to Submit Answer