首页 > 技术文章 > HTML标签

FTFOX 2019-02-11 09:07 原文

HTML

head标签

  • <meat   ->编码,跳转,刷新,关键字,描述,IE兼容
  • <meat charset="UTF-8">
  • <meta http-equiv="refresh" content="5"> 设置默认5秒刷新
  • <meta http-equiv="refresh" content="5 url=http://www.baidu.com"> 自动跳转
  • <meta name="keywords" content="关键字"> 设置搜索关键字
  • meta name="description" content="不超过150个字符" />设置描述
  • <meta name="author" content="name, email@gmail.com" /> <!-- 网页作者 -->
  • <link rel="shortcut icon" href="image/1.ico" /> 设置浏览器图标
  • <link rel="" href="">
  • <title>标题</title>

body标签

所有标签分为:

  • 块级标签:div(白板),H系列标签(加大加粗),P标签(段落和段落之间有间距)
  • 行内标签::span(白板)
  • 块级标签之间可以嵌套
  • 标签存在的意义,CSS操作,JS操作
  • input系统+form标签(依赖 form标签提交数据)
    • <form action ="http://ssss/......" method="get/post">  
    • input type="text" name属性,value="值" 文本框 placeholder=“框内提示信息”
    • input type="password" 密码文本框
    • input type="password" name属性,value="值"
    • input type="submit" value="值" 提交按钮
    • input type="button" value="值”   按钮
    • 男:<input type="radio" name="r1" value="1" checked="checked"> 单选框
    • 爱好“<input type="checkbox" name="c1" value="5" checked="checked">复选框
    • <textarea>默认值</textarea>多选文本框标签
    • <select name="m1" >列表
    •    <option value="1">北京</option>
    •    <option value="2" selected="selected">上海</option>
    •    <option value="3">广州</option>
    •    <option value="4">深圳</option>
    • 
      
      </select>
    • </form>
    • <form></form>
    • <a href="#i1">a标签</a><div id="i1">1</div>
    • <img></img>
    • <ul><li></li></ul>
    • <ol><li></li></ol>
    • <dl><dt><dd></dd></td></dl>
    • <tale><thead><tr><td colspan></td></tr></thead><tbody><tr ><td  rowspan></td></tr></tbody></table>
    • <lable for="id1">标签</lable><iinput id="i1" type="text" name="use">

 

推荐阅读