Html各种标签

<body>
  <!-- action :代表了 我们需要提交的地址
  method: 提交的方式
  01.get 不安全, form表单中的元素会显示在 url中
  02.post 相对安全的
  -->
  <form action="#" method="get">
  <!--
  type="text" :说明这是一个文本输入框
  value: 代表的是 输入框中的内容
  name: 服务器就是通过name的属性值 来获取 对应 value
   
  type="submit" : 提交按钮
  type="button" : 普通的按钮 不具有提交的功能
  type="password": 密码框
  type="checkbox": 复选框
  type="radio": 单选框
  select:下拉框
  textarea: 文本域
  readonly="readonly": 只读属性
  disabled="disabled":让按钮失效
  type="hidden": 表单隐藏域
  -->
  用户名:<input type="text" value="小黑" name="userName" readonly="readonly"/> <br/>
  密码:<input type="password" name="pwd"/><br/>
  性别:<input type="radio" name="sex">
  <input type="radio" name="sex"><br/>
  是否同意条款:<input type="checkbox">
  是否同意条款:<input type="checkbox">
  是否同意条款:<input type="checkbox">
  是否同意条款:<input type="checkbox"><br/>
  请选择月份:<select >
  <option>月份</option>
  <option>1月份</option>
  <option>2月份</option>
  <option>3月份</option>
  <option>4月份</option>
  </select><br/>
  请输入内容:
  <textarea name="text">
  这是一个多行文本域
  </textarea> <br/>
  请选择文件:
  <input type="file"/><br/>
   
  选择日期:
  <input type="date" min="1999-01-01"><br/>
  <input type="date" max="2016-10-01"><br/>
   
  时间:<input type="time" value="14:44"/><br/>
   
  <input type="number" max="12" min="1" />
   
  <!-- <input type="submit" value="注册">-->
  <button type="submit" disabled="disabled">注册</button><br/>
  <input type="reset" value="重置">
  隐藏域:<input type="hidden" name="hi">
  </form>
  </body>
  </html>
原文地址:https://www.cnblogs.com/chenxiufei/p/5923831.html