WEB前端之HTML FORM

2025-11-27 07:09:03

1、<from action="" method=" post"></form>

action 填写表单提交给谁处理 

method 表单提交类型

WEB前端之HTML FORM

2、不同类型的 input 元素、复选框、单选按钮、提交按钮等

<input type="text" name="name" readonly disabled size="40" maxlength="80">

<input type="password" name="password">

<input type="radio" name="sex" value="male" checked>

<input type="radio" name="sex" value="femal">

<input type="checkbox" name="a" value="a" >a

<input type="number" min="2" max="8">

<input type="date" name="data">

<input type="color" name="color">

<input type="range" name="a">

<input type="month/week/time/datetime/datetime-local/email/search/tel/url" name="s">

<input type="submit" value="提交">

<input type="reset" value="重置">

WEB前端之HTML FORM

3、<fieldset>

<legend>组合表单数据</legend>

</fieldset>

WEB前端之HTML FORM

4、<select>

<option selected>a 

</select>

<textarea rows="20" cols="30"></textarea>

<button></button>

WEB前端之HTML FORM

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
相关推荐
  • 阅读量:47
  • 阅读量:79
  • 阅读量:61
  • 阅读量:127
  • 阅读量:69
  • 猜你喜欢