WEB前端之HTML FORM

时间:2026-02-16 00:50:36

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

© 2026 五度知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com