HTML <input> 标签的 readonly 属性HTML <input> 标签实例带有两个文本字段和一个提交按钮的 HTML 表单:<form action="form_action.php" method="get"> Name:<input type="
HTML <input> 标签的 placeholder 属性HTML <input> 标签实例带有 placeholder 文本的搜索字段:<form action="demo_form.asp" method="get"> <input type="search" name="u
HTML <input> 标签的 pattern 属性HTML <input> 标签实例只能包含三个字母的文本字段(数字或特殊字符): Country code: <input type="text" name="country_code" pattern="[A-
HTML <input> 标签的 name 属性HTML <input> 标签实例带有两个文本字段和一个提交按钮的 HTML 表单:<form action="form_action.asp" method="get"> <p>Name: <input type="
HTML <input> 标签的 multiple 属性HTML <input> 标签实例可接受多个值的文件上传字段:<form action="demo_form.asp" method="get"> Select images: <input type="file" na
HTML <input> 标签的 minlength 属性HTML <input> 标签实例最小长度为 8 个字符的 <input> 元素:<form action="/action_page.php"> <label for="password">Password:</labe
HTML <input> 标签的 min 属性HTML <input> 标签实例带有指定范围的数字输入字段:Points: <input type="number" name="points" min="0" max="10" /> 完整实例【亲自试一试】
HTML <input> 标签的 maxlength 属性HTML <input> 标签实例下面这个 HTML 表单带有最大长度分别是 85 和 55 个字符的两个输入字段:<form action="form_action.php" method="
HTML <input> 标签的 max 属性HTML <input> 标签实例带有指定范围的数字输入字段:Points: <input type="number" name="points" min="0" max="10" /> 完整实例【亲自试一试】
HTML <input> 标签的 list 属性HTML <input> 标签实例带有 datalist 的表单:<form action="demo_form.php">Webpage: <input type="url" list="url_list" name="link" /><dat
HTML <input> 标签的 height 属性HTML <input> 标签实例用图片作为提交按钮的表单:<form action="demo_form.asp" method="get">First name: <input type="text" name="fname
HTML <input> 标签的 formtarget 属性HTML <input> 标签实例带有两个提交按钮的表单,会提交到不同的目标窗口:<form action="demo_form.asp" method="get"> First name: <inp
HTML <input> 标签的 formnovalidate 属性HTML <input> 标签实例带有两个提交按钮的表单(一个进行验证,另一个不验证):<form action="demo_form.asp" method="get">E-mail: <inp
HTML <input> 标签的 formmethod 属性HTML <input> 标签实例下面的提交按钮覆盖了表单的 HTTP 方法:<form action="demo_form.asp" method="get">First name: <input type="t
HTML <input> 标签的 formenctype 属性HTML <input> 标签实例带有两个提交按钮的表单(拥有有不同的编码方式):<form action="demo_post_enctype.asp" method="post"> First na