Home »

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

Question ListCategory: HTMLWhat is the purpose of ‘placeholder’ attribute in HTML5?
jully882 author asked 2 years ago
1 Answers
adamemliy16 author answered 2 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