Text input box, password input box

When users want to type letters, numbers, etc. in the form, the text input box is used. The text box can also be converted into a password input box.

Grammar:

<form>
   <input type="text/password" name="名称" value="文本" />
</form>

1, type:

When type="text", The input box is a text input box;

When type="password", The input box is the password input box.

2. name: Name the text box for use by the background programs ASP and PHP.

3. value: Set the default value for the text input box. (Generally used as a prompt)

Example:

<form>
  姓名:
  <input type="text" name="myName">
  <br/>
  密码:
  <input type="password" name="pass">
</form>

The results displayed in the browser:

QQ截图20161203104159.png

Continuing Learning
||
<form> 姓名: <input type="text" name="myName"> <br/> 密码: <input type="password" name="pass"> </form>
submitReset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!