Survey form - Placeholder

Hey! I’m doing the survey for the certification and when I upload it I get this error:

  • Failed: Your #name should have a placeholder attribute and value.

What does this refeer to? to the placeholder CSS attribute or what?

To the HTML placeholder attribute that can be used on text inputs.

MDN: <input type="text">

So, with placeholder they mean “type”? Because I already have those.

No. The placeholder is an attribute you add to the input, just like type is an attribute you add to the input.

Did you complete the “Building a Registration Form” course? If so, you used a placeholder attribute for the textarea in that course.

Thank you so much! Thanks to your answer, I finally completed that project !!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.