`
songzhan
  • 浏览: 241011 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

html5 标签用法

阅读更多

!----------------------------html5标签实验室--------------------->

<!--
audio标签用法(给一个音频文件的地址,可以显示指定是否可手动控制)
-->

<audio src="horse.ogg" controls="controls">
Your browser does not support the audio element.
</audio>

<!------------------------------end---------------------------------->

<!--
video标签用法(用法与audio类似,给一个视频文件的地址,可以显示指定是否可手动控制)
-->

<video src="movie.ogg" controls="controls">
your browser does not support the video tag
</video>

<!------------------------------end---------------------------------->

<!--
abbr标签用法(鼠标停留在"WHO"上面时,会提示title属性中定义的文字)
-->

The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.

<!------------------------------end---------------------------------->

<!--
address用法(在网页中定义联系方式的时候会用到)
-->

<address>
Written by W3Schools.com<br />
<a href="mailto:us@example.org">Email us</a><br />
Address: Box 564, Disneyland<br />
Phone: +12 34 56 78
</address>

<!------------------------------end---------------------------------->

<!--
    HTML5: <article></article>
    HTML4: <div class="article"></div>

这个标签的唯一目的是废除需要定义的一个类。
-->

<article>
<a href="http://blog.netscape.com/2007/12/28/
end-of-support-for-netscape-web-browsers">Netscape is dead</a>
<p>
AOL has a long history on the internet, being one of
the first companies to really get people online.....</p>
<p>something news about AOL,story of AOL is very long.....</p>
</article> 

<!------------------------------end---------------------------------->

<!--
    HTML5: <aside></aside>
    HTML4: <div class="aside"></div>

这个标签的唯一目的是废除需要定义的一个类。
-->

<p>My family and I visited The Epcot center this summer.</p>
<aside>
<h4>Epcot Center</h4>
The Epcot Center is a theme park in Disney World, Florida.
</aside> 

<!------------------------------end---------------------------------->

<!--
base 用法(最好把base放在head标签内,方便管理代码,为了演示用法,放在了一起,单击链接,会跳转到 http://www.w3schools.com/html5/default.asp)
-->

<base href="http://www.w3schools.com/html5/" target="_blank" />

<a href="default.asp">W3Schools' HTML5 Tutorial</a>

<!------------------------------end---------------------------------->

<!--
rlt 用法(dir默认的文字方向是从左到右,为了突出其用法,本例为从右至左)
-->

<bdo dir="rtl">
Here is some text written from right-to-left.
</bdo>

<!------------------------------end---------------------------------->

<!--
blockquote 用法(定义简讯、短消息)
-->

<p>Here is a quote from WWF's website:
<blockquote cite="http://www.wwf.org">
WWF's ultimate goal is to build a future where people live in harmony with nature.
</blockquote>
We hope that they succeed.
</p>

<!------------------------------end---------------------------------->

<!--
caption 用法(对table进行说明)
-->

<table>
  <caption>Monthly savings</caption>
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
  <tr>
    <td>February</td>
    <td>$50</td>
  </tr>
</table>

<!------------------------------end---------------------------------->

<!--
<em> <strong> <dfn> <code> <samp> <kbd> <var> <cite> 标签用法
-->

<!--强调-->
<em>Emphasized text</em><br />
<!--加粗-->
<strong>Strong text</strong><br />
<!--定义-->
<dfn>Definition term</dfn><br />
<!--代码-->
<code>Computer code text</code><br />
<!--示例代码-->
<samp>Sample computer code text</samp><br />
<!--键盘文字-->
<kbd>Keyboard text</kbd><br />
<!--变量-->
<var>Variable</var><br />
<!--引用-->
<cite>Citation</cite> 

<!------------------------------end---------------------------------->

<!--
colgroup 用法(以列为单位控制样式)
-->

<table>
  <colgroup span="2" style="background:red"></colgroup>
  <tr>
    <th>ISBN</th>
    <th>Title</th>
    <th>Price</th>
  </tr>
  <tr>
    <td>3476896</td>
    <td>My first HTML</td>
    <td>$53</td>
  </tr>
</table>

<!------------------------------end---------------------------------->

<!--
datalist 用法(自动补全文本框)
-->

<input list="cars" />
<datalist id="cars">
    <option value="BMW">
    <option value="Ford">
    <option value="Volvo">
</datalist>

<!------------------------------end---------------------------------->

<!--
dl,dt,dd 用法
-->


<dl>
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>another one</dt>
<dd>wwwww</dd>

<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>

<!------------------------------end---------------------------------->

<!--
del(同s),ins 用法
-->

<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>

<!------------------------------end---------------------------------->

<!--
details 用法,当有标题+段落说明的场景时可以使用
-->

<details>
<summary>Copyright 1999-2011.</summary>
<p>All pages and graphics on this web site are the property of the company Refsnes Data.</p>
</details>

<!------------------------------end---------------------------------->

<!--
embed/object 用法,嵌入flash
-->

<embed src="helloworld.swf" />
<object data="helloworld.swf"></object>

<!------------------------------end---------------------------------->


<!--
fieldset,legend 用法,填写用户信息时
-->

  <fieldset>
    <legend>Personalia:</legend>
    Name: <input type="text" /><br />
    Email: <input type="text" /><br />
    Date of birth: <input type="text" />
  </fieldset>

<!------------------------------end---------------------------------->

<!--
footer 用法,放在页面底部说明页面版权
-->

<footer>This document was written in 2009</footer>

<!------------------------------end---------------------------------->

<!--
mark 用法,特别标记单词
-->

<p>Do not forget to buy <mark>milk</mark> today.</p>

<!------------------------------end---------------------------------->

<!--
nav 用法,包含一些链接
-->

<nav>
<a href="default.asp">Home</a>
<a href="tag_meter.asp">Previous</a>
<a href="tag_noscript.asp">Next</a>
</nav>

<!------------------------------end---------------------------------->



<!--
time 用法,等同span,只是专门用来定义日期和时间
-->

<time datetime="10:00">10:00</time>

<!------------------------------end---------------------------------->

<!--
    HTML5: <figure></figure>
    HTML4: <dl class="figure"></dl>

这个标签的唯一目的是废除需要定义的一个类。
-->

<figure>
  <p>A view of the pulpit rock in Norway</p>
  <img src="img_pulpit.jpg" width="304" height="228" />
</figure>

<!------------------------------end---------------------------------->

<!--
     HTML5: <menu></menu>
     HTML4: <ul class="menu"></ul>

这个标签的唯一目的是废除需要定义的一个类。
-->

<menu>
<li><input type="checkbox" />Red</li>
<li><input type="checkbox" />blue</li>
</menu>

<!------------------------------end---------------------------------->

分享到:
评论

相关推荐

    HTML5视频播放video标签使用方法.docx

    HTML5视频播放video标签使用方法.docxHTML5视频播放video标签使用方法.docx

    HTML 5和 HTML 4的区别点及标签用法

    HTML 5和 HTML 4的区别点及标签用法

    HTML5标签使用方法详解

    HTML 5 是一个新的网络标准,目标在于取代现有的 HTML 4.01, XHTML 1.0 and DOM Level 2 HTML 标准,本文给大家介绍HTML5标签使用方法详解,对html5标签使用相关内容感兴趣的朋友一起学习吧

    html标签大全标签用法详解

    本书对网站开发者很有帮助,里面较详尽描叙了个标签得用法.....

    HTML5标签(chm版)

    HTML5大家学习可能也就一个星期就学会了,但是要完全记住里面的标签的用法和标签名就显得很困难了. 而这个文件是chm文件记录了html5的标签和html5与html4的不同方便记忆和以后开发使用.

    jsp中htmlselect标签的用法

    html:select&gt;标签的用法 &lt;html:select property="theChoice"&gt; &lt;html:options collection="choiceLists" property="value" labelProperty="description" /&gt; &lt;/html:select&gt;

    html5标签集合

    html入门学习,html5中所有涉及的标签作用及使用方法

    html5标签大全

    整理的html5标签属性大全,里面有对各个标签的用法和属性的详细记录

    html5video标签用法

    简单的html5 audio和video标签的用法,还不错哦,供小白参考

    常见语义html标签及使用方法.doc

    常见语义html标签及使用方法, 学习html标签含使用方法d

    Html标签使用技巧

    思路:select标签赋值和取值和普通字段是相同的方法; 1.1 使用javascript操作 1.1.1 取值 var codeId = document.forms["selectForm"].elements["interestCode"].value; 1.1.2 赋值 document.forms["selectForm"]....

    html meta标签使用方法

    主要介绍Html 标签meta用法 可以帮助初学者了解详细用处

    html5标签属性及使用方法教程

    html网页标签速查宝典,是学习网页制作的入门好材料,是网页高手的必备手册。

    html和css部分标签属性用法

    自己整理的部分HTML的元素属性用法和一些css样式

    HTML语法基础.以及标签的用法

    相关HTML的标签,以及用法 1、 网页架构:主要网页主架构的介绍。 2、 分隔标签:也就是所谓的水平线。 3、 排版标签:针对标签的属性,可做适当的版面编排。 4、 字体标签:教导您设定文字的字体。 5、 文字标签:...

    HTML标签的使用方法

    大家熟悉一下HTML标签的使用方法

    HTML !DOCTYPE 标签 声明HTML版本

    DOCTYPE&gt;并不是HTML标签,它声明web浏览器关于页面使用哪个 HTML 版本进行编写的指令。 在 HTML 4.01 中,&lt;!DOCTYPE&gt; 声明引用 DTD,因为 HTML 4.01 基于 SGML。DTD 规定了标记语言的规则,这样浏览器才能正确地呈现...

Global site tag (gtag.js) - Google Analytics