Home > other >  Username text input not being displayed
Username text input not being displayed

Time:10-18

enter image description here

I've created this login page for this project I'm doing. I don't know what I've changed but the username text input is hidden. What's causing this and how do I change it so its displayed?

CodePudding user response:

Your input type is wrong. You have change to text.

<input type="text" name="Username" ...>

CodePudding user response:

The type needs to be changed to text for it to be visible. Anything of type password will show the dots instead of the actual value to maintain some level of privacy.

Example:

<input type="password" name="Username" placeholder="Enter Username" value="Test">
<input type="text" name="Username" placeholder="Enter Username" value="Test">
<iframe name="sif1" sandbox="allow-forms allow-modals allow-scripts" frameborder="0"></iframe>

Input types:

Text: " The default value. A single-line text field. Line-breaks are automatically removed from the input value. "

Password: "A single-line text field whose value is obscured. Will alert user if site is not secure. "

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input

  • Related