zoukankan      html  css  js  c++  java
  • html5新增结构性标签(整理)

    语义化强

    *<header></header> 页眉、头部
    *<footer></footer> 页脚、底部
    *<nav></nav> 导航
    <hgroup></hgroup> 标题组合
      <h1></h1>
      <h3></h3>
    *<section></section> 区块
    <article></article> 文章、博客、说明
    <aside></aside> 侧边、边栏
      aside 如果放到section 侧边、友情链接、广告
      aside 如果放到article 相关文章
    <figure></figure> 用于对元素进行组合。一般用于图片或视频
    <figcaption></figcaption> 图片相关说明、标题
    <time></time> 时间、标识
    <datalist></datalist> 数据列表
      <input type="text" list="a">
      <datalist id="a">
        <option></option>
      </datalist>
    <details></details> 描述
      <summary></summary> 概要、标题   

        <details open>

          <summary></summary>
          <p></p>
        </details>
    <dialog></dialog> 对话
      <dialog open>
        <dt>你好</dt>
        <dd>你好!</dd>
        <dt>hello</dt>
        <dd>hello!</dd>
      </dialog>
    <address></address> 地址
    <mark></mark> 标记
    <keygen></keygen> 秘钥
      <keygen name="key"></keygen>
    <progress></progress> 进度条
    <meter></meter> 进度条

    兼容低版本:html5shiv.js

    <!--[if lt IE 9]>
    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
    <![endif]-->

  • 相关阅读:
    Prototype的深度探索
    MySQL LIST分区
    CentOS6下Haproxy的安装配置
    haproxy做TCP层的负载均衡
    Shape Control for .NET
    如何通过 HSB 颜色模式构建夜间模式
    使用ICSharpCode.TextEditor制作一个语法高亮显示的XML编辑器
    Roslyn介绍
    信息安全名词
    用彩虹表破解MD5、LM Hash等复杂加密密码
  • 原文地址:https://www.cnblogs.com/queenie/p/4928766.html
Copyright © 2011-2022 走看看