Placeholder not appearing in textbox

Instead of the placeholder "name " and "email-id " appears in the first two textboxes. When I delete them then the placeholder shows up. I have no idea why this is happening.
Placeholder shows up properly in the textbox of type “number” called Age.

It seems to be a problem with input type name and email only. Please help.

Your project link(s)


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

Challenge: Build a Survey Form

Link to the challenge:

@divijsumbly The value attribute is causing it. The value mean the default value for the input. If you remove the value attribute the placeholder will show up.

1 Like

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