关于<form>标签

<form>用于为用户输入创建HTML表单,表单用于向服务器传输数据

form是块级元素,其前后会产生折行

<form>包含:

  1.input元素:(根据不同的type属性,输入字段拥有很多种形式)如:

    文本域<input type=“text” >

    密码域<input type=“password” >

    复选框                   checkbox

    单选框                   radio(加上name属性)

    下拉列表                select(<select><option>1</option><option>2</option></select>)

      (预先选定的下拉列表选项:selected  <option selected=“selected”>1</option>)

    多行输入的文本域     textarea(<textarea rows="10" cols="30"></textarea>)

    按钮                       button(value属性)

    围绕数据的标题框     <form><fieldset><legend>这是标题</legennd><input></input></fieldset></form>

    提交按钮                  submit

    重置按钮                  reset

  6.label元素:<label> 标签为 input 元素定义标注(标记)。

原文地址:https://www.cnblogs.com/jing00/p/6032350.html