HTML5入門篇

來源:互聯網
上載者:User

標籤:

---- HTML5簡介

HTML5 是用於取代1999年所制定的 HTML 4.01 和 XHTML 1.0 標準的 HTML 標準版本,現在仍處於發展階段,但大部分瀏覽器已經支援某些 HTML5 技術。HTML5 有兩大特點:首先,強化了 Web 網頁的表現效能。其次,追加了本機資料庫等 Web 應用程式的功能。廣義論及 HTML5 時,實際指的是包括 HTML、CSS 和 JavaScript 在內的一套技術組合。


---- 新的布局標記

- header,hgroup,article,section,aside,footer
- 專註於內容,不專註於形勢

---- 頭部標記

- Header
- hgroup

  <header>     <img>     <hgroup>    <h1>    <h2>     <hgroup>  </header>

---- 大塊文章

<article>    <img>    <h2>    <address>    <time></article>

---- 日期和時間

<address>   xgao<br/>   <a href="">Email他</a><br/>   地址:廣州<br/>   電話:+12345678</address><p>這是在<time datetime="2012-05-16">這一天</time></p><p>我開啟在<time>10:00</time>的晚上</p>

---- Footer 尾部定義

<footer>    <p>    <nav>        <h3>        <div>      <a>    </div>    </nav></footer>

---- 地區與塊

- Aside // 在…旁邊
- section// 某一塊內容

---- 與布局無關的

- Figure
- figcaption

<figure><p>這是一些內容</p><img src="a.jpg" width="200" height="100"/></figure>

---- 漢字元素

- Ruby

<ruby>漢<rt> ㄏㄢˋ </rt></ruby>

---- Time

- 日期

Component Syntax Example
--------------------------------------------------------------
DateYYYY-MM-DD2011-07-13
Time with hourshh:mm18:28
Time with secondshh:mm:ss18:28:05
Time with millisecondshh:mm:ss.f18:28:05.2318
Date and timeT to join date and time2011-07-13T18:28
With time zone GMTZ at the end2011-07-13T18:28:05Z
With time zone as offset +mm:hh / -mm:hh2011-07-13T18:28:05+02:00

HTML5入門篇

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.