This article brings you some application examples of the type attribute of form tags in HTML. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
单标签
type attribute:
text (single-line text input box)
password (password input box)
radio (radio button)
checkbox (checkbox)
button (normal button)
submit (submit button)
reset (reset button)
image (image Submit button in the form)
file (file domain)
name Customized control name
value Customized The default text value in the input control
size Positive integer input The display width of the control on the page
checked checked Defines the default selected items of the selection control
maxlength is a positive integer The maximum number of characters allowed to be entered by the control
表单设置
性别 | 男 女 |
生日 | |
所在地区 | |
所在地区编码 | 23 34 56 67 |
用户名 | |
密码 | //控制最多输入6个字 |
注册 | |
上传头像 | |
自我介绍 | |
我同意 | |
我是会员立即注册 | |
我承诺
|
Related recommendations:
html What does the strong tag mean? Introduction to the specific usage of the strong tag in html
html What is the role of the link tag? Definition and attribute introduction of html link tag
The above is the detailed content of Application example of type attribute of form tag in html. For more information, please follow other related articles on the PHP Chinese website!