Home » Computer Science » HTML5 » What does the placeholder attribute do in an HTML5 <input> element?

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