zoukankan      html  css  js  c++  java
  • HTML——超文本标记语言(表单及12个表单元素)

    表单

    格式:

    <form action=" " method="get/post"  placehoder=" "></form>

    表单元素:12个

     1、文本类
    txt-<input type="txt" value="内容"  name="名字(相同的为一类)"  id="身份号(不可重复)"/> - 文本框
    password-<input type="password"  value="内容"  name="(重复的为一类)"  id="身份号(不可重复)"/> - 密码框
    textarea-<textarea name=""  id=""  cols="字符多少"  rows="几行高" > </textarea> - 文本域
    hidden-<input type="hidden" value=""  name=""  id=""> - 隐藏域

     2、按钮类
    button-<input type="button" value=""  name=""  id=""  disable="disabled"/>   - 普通按钮
    submit -<input type="submit" value=""  name=""  id=""  disable="disabled"/>  提交按钮
    reset - <input type="reset" value=""  name=""  id=""  disable="disabled"/> 重置按钮
    image -<input type="image" value=""  name=""  id=""  disable="disabled"/>  图片按钮 = 提交按钮

     3、选择类
    radio - <input type="radio" value=""  name=""  id=""  check="checked"/> 单选按钮

    checkbox - <input type="checkbox" value=""  name=""  id=""  check="checked"/> 复选按钮

    <select> - 下拉列表
    <option></option>
    </select>

    file - <input type="file"  name=""  id=""  /> 文件选择

    <label for="id的值">内容</lable>

    <lable>标签为input 元素定义标注(标记)。

    lable元素不会向用户呈现任何特殊效果,不过,它为鼠标用户改进了可用性。

    lable标签的for属性应当与相关元素的ID属性相同。

  • 相关阅读:
    摘金奇缘在线观看迅雷下载
    无敌破坏王2:大闹互联网在线观看
    神奇动物:格林德沃之罪电影在线观看
    你好,之华
    毒液:致命守护者
    apache 通过ajp访问tomcat多个站点
    docker使用大全 tomcat安装
    Log4j2 + Maven的配置文件示例详解
    centos7 设置tomcat自启动
    nginx多站路由配置tomcat
  • 原文地址:https://www.cnblogs.com/weiyu11/p/6605879.html
Copyright © 2011-2022 走看看