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

  • web前端初识html
  • html5的form元素
  • form怎么提交表单
  • web前端怎样做响应式
  • web前端开发的岗位具体是做什么
  • 热门搜索
    被老鼠咬了怎么办 年糕怎么做 france怎么读 怎么才能瘦脸 cpu使用率100怎么办 adobe怎么读 宣传语怎么写 血液循环不好怎么调理 血管造影怎么做 优酷会员自动续费怎么取消