html5系列.基礎知識

來源:互聯網
上載者:User

標籤:

相容性問題

 建立一個html5頁面 

<!DOCTYPE html><html>  <head>    <meta charset="UTF-8">    <title></title>  </head>  <body>  ......  </body></html>

html5新的 (input type=類型) 元素

<input type="number" name="quantity" /><input type="date" name="bday" /><input type="color" name="favcolor" /><input type="range" name="points" /><input type="month" name="bdaymonth" /><input type="week" name="week_year" /><input type="datetime" name="bdaytime" /><input type="datetime-local" name="bdaytime" /><input type="email" name="email" /><input type="search" name="googlesearch" /><input type="tel" name="usrtel" /><input type="url" name="homepage" />

html5新元素

<datalist>    標籤定義可選資料的列表。<keygen>    標籤定義產生密鑰。<output>    標籤定義不同類型的輸出。<article>    標籤定義外部的內容。<aside>        標籤定義 article 以外的內容。aside 的內容應該與 article 的內容相關。<details>    標籤定義元素的細節,通過點擊進行隱藏。<dialog>    標籤定義對話方塊或視窗。<figcaption>    標籤定義 figure 元素的標題。<figure>    標籤用於對元素進行組合。使用 figcaption 元素為元素組添加標題。<footer>    標籤定義 section 或 document 的頁尾。<header>    標籤定義 section 或 document 的頁首。<main>        標籤定義文檔的主要內容。<meter>        標籤定義度量衡。可在 min/max 屬性中定義。<nav>        標籤定義導航連結的部分。<rp>        標籤定義在 ruby 注釋中使用。<rt>        標籤定義字元(中文注音或字元)。<ruby>        標籤定義 ruby 注釋(中文注音或字元)。<section>    標籤定義文檔中的章節、頁首、頁尾或文檔中的其他部分。<summary>    標籤定義包含 details 元素的標題。<time>        標籤定義日期或時間。<mark>        標籤定義標記或高亮顯示文本。此標籤很常用,在搜尋中可以高亮顯示搜尋關鍵詞。<progress>    標籤運行中的進程。此標籤來顯示 javascript 中耗費時間的函數的進程。--------------------------------------------------------------------------<video>        標籤定義視頻。<audio>        標籤定義聲音。<source>    標籤為媒介元素(<video>、<audio>)定義媒介資源。<canvas>    標籤定義圖形。

本文來源:http://www.jcore.cn/2014/09/14/html5-series-base/

 

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.