HTML Form input password Password field



 The HTML Form can use the input password to make the password input field. The biggest difference from the input text text input field is that the input password will automatically turn the text entered by the netizen into a hidden symbol to prevent the netizen from being caught by others when they enter the password. As you can see, input password is often used in member registration or member login steps.


HTML Form input password password field example
<form>
Password field: <input type="password" name="password field name">
</form>
The results are presented as

Password field:


The password input field is written as <input type="password" name="Password field name"> In this way, the name of the password field is for netizens to fill out the form and get netizens through programs like PHP Enter the password, and further perform the member login steps, the fields need to be wrapped in the <form> form tag.

In addition, if you want to set the width of the input password field, you cannot use the cols in the textarea to process it, but you can use CSS width to design. For example, we create a password field and use style="width:200px;" The syntax tells the browser that the width of this field is 200px wide, and you can also adjust the size according to the design of the board.

<input type="password" name="password field name" style="width:200px;">

Post a Comment

0 Comments