9-1.创建表单

创建表单:

1.form双标签用于创建一个表单,会将表单里面的内容发送到服务器,结构类似于表格

2.表单中的其他元素都要包含在form标签中

3.action属性:指定表单发送到服务器的地址,必须要有

4.method属性:表单数据发送至服务器的方法,常用有两种:get(默认)和post

<form action="" method="post" name="表单名称" target="_self" novaildiate="on/off">
  <input type="text" name="uname" value="请输入...">   <input type="submit" value="提交"/> </form>

  

 

posted on 2021-11-04 21:48  Walker-Yang  阅读(335)  评论(0编辑  收藏  举报

导航