Site icon MCQs | eBooks – Textbook Solutions

What does the placeholder attribute do in an HTML5 <input> element?

A. Sets the maximum length of input text
B. Provides a hint to the user about what to enter
C. Disables the input field
D. Specifies the type of data to enter

Option: B

Exit mobile version