<form>标签

<form method="" action=""></form>

(1)form表单中的method属性的值为数据发送的方式,最常用的有get和post。action属性的值为接收数据的后端文件,例如:<form method="post" action="abc.php"></form>

-----------------------常用的几个组件--------------------------

1、<input type="text">:文本框

2、<input type="radio">:单选框

3、<input type="checkbox">:多选框

4、<input type="password">:密码框

5、

<select>

  <optgroup lable="福建省">

    <option>1</option>

    <option>2</option>

  </optgroup>

  <optgroup lable="广东省">

    <option>3</option>

  </optgroup>

</select>:下拉列表

 

posted on 2018-12-05 16:26  刚出生的小猿  阅读(114)  评论(0)    收藏  举报

导航