html5學(xué)習(xí)筆記(4)-創(chuàng)新互聯(lián)

XHTML可擴(kuò)展的超文本標(biāo)記語(yǔ)言

10年積累的做網(wǎng)站、成都網(wǎng)站設(shè)計(jì)經(jīng)驗(yàn),可以快速應(yīng)對(duì)客戶對(duì)網(wǎng)站的新想法和需求。提供各種問(wèn)題對(duì)應(yīng)的解決方案。讓選擇我們的客戶得到更好、更有力的網(wǎng)絡(luò)服務(wù)。我雖然不認(rèn)識(shí)你,你也不認(rèn)識(shí)我。但先制作網(wǎng)站后付款的網(wǎng)站建設(shè)流程,更有巨野免費(fèi)網(wǎng)站建設(shè)讓你可以放心的選擇與我們合作。

文檔聲明:

    DTD:

html5與html4的區(qū)別

html5新增的元素:

  • 結(jié)構(gòu)元素:section ,article, aside, header,hgroup,footer, nav, figure

  • 其他元素: video,audio, canvas,

  • input,元素類型:Email,

全局屬性:

  • contentEditable

  • disignMode

  • hidden

  • spellcheck

  • tabindex

<!DOCTYPE html> <html> <head lang="en">     <meta charset="UTF-8">     <title></title> </head> <body>     <h3>contentEditable</h3>     <ul contenteditable="true">         <li>表1</li>         <li>表2</li>         <li>表3</li>     </ul>     <ul hidden="true">         <li>表1</li>         <li>表2</li>         <li>表3</li>     </ul>     <input type="text" spellcheck="">     <a href="#" tabindex="1">hello1</a>     <a href="#" tabindex="2">hello2</a>     <a href="#" tabindex="3">hello3</a> </body> </html>

新增的主體結(jié)構(gòu)元素:

1 , article

<!DOCTYPE html> <html> <head lang="en">     <meta charset="UTF-8">     <title>article</title> </head> <body>     <article>         <header>             <h2>thystar</h2>             <p>welcome to jike</p>         </header>         <article>             <header>                 作者             </header>             <p>評(píng)論</p>             <footer>                 time             </footer>         </article>         <footer>             <p>底部</p>         </footer>     </article>     <article>         <h2>嵌套頁(yè)面</h2>         <object>             <embed src="#" width="600" height="400"></embed>         </object>     </article> </body> </html>

2. section

<!DOCTYPE html> <html> <head lang="en">     <meta charset="UTF-8">     <title>article</title> </head> <body>     <section>         <h2>apple</h2>         <p>this is an apple</p>     </section>     <article>         <h2>apple</h2>         <p>this is an apple</p>         <section>             <h3>red</h3>             <p>this is a red apple</p>         </section>         <section>             <h3>green</h3>             <p>this is a green apple</p>         </section>     </article>     <section>         <h2>fruit</h2>         <article>             <h2>apple</h2>             <p>this is an apple</p>         </article>         <article>             <h2>apple</h2>             <p>this is an apple</p>         </article>         <article>             <h2>apple</h2>             <p>this is an apple</p>         </article>     </section> </body> </html>

3. nav 導(dǎo)航

<!DOCTYPE html> <html> <head lang="en">     <meta charset="UTF-8">     <title>article</title> </head> <body>     <nav>         <ul>             <li><a href="#">主頁(yè)</a></li>             <li><a href="#">文檔</li>         </ul>     </nav>     <article>         <header>             <h2>ssssssssssssss</h2>             <nav>                 <ul>                     <li><a href="#">主頁(yè)</a></li>                     <li><a href="#">文檔</li>                 </ul>             </nav>         </header>         <section>             <h2>ssssssssssssss</h2>             <nav>                 <ul>                     <li><a href="#">主頁(yè)</a></li>                     <li><a href="#">文檔</li>                 </ul>             </nav>         </section>         <footer>             <nav>                 <ul>                     <li><a href="#">刪除</a></li>                     <li><a href="#">修改</li>                 </ul>             </nav>         </footer>     </article>     <footer>         <p><small>版權(quán)聲明</small></p>     </footer> </body> </html>

aside元素

<!DOCTYPE html> <html> <head lang="en">     <meta charset="UTF-8">     <title></title> </head> <body>     <header>         <h2>jike</h2>     </header> <article>     <h2>yufa</h2>     <p>zhengwen</p>     <aside>         <h2>jishi</h2>         <p>yufa:yigeduiyuyanlaishuohenzhongyaodeneirongti</p>     </aside> </article> <aside>     <nav>         <h3>pinglu</h3>         <ul>             <li><a href="#">20150101</a></li>             <li><a href="#">20150102</a></li>                      </ul>     </nav> </aside> </body> </html>

time元素與微格式

<!DOCTYPE html> <html> <head lang="en">     <meta charset="UTF-8">     <title></title> </head> <body>     <time datetime="20101010">2010-10-10</time>     <time datetime="20101010T20:00">2010-10-10</time>     <time datetime="20101010T20:00+09:00">2010-10-10</time> </body> </html>

pubdate

<body>     <article>         <h2>             pingguo         </h2>         <p><time datetime="2015-10-15" pubdate>2015-10-15</time></p>         <p><time datetime="2015-10-15" >2015-10-18</time></p>     </article> </body>

html5新增的非主體結(jié)構(gòu)元素

header元素:

<!DOCTYPE html> <html> <head lang="en">     <meta charset="UTF-8">     <title></title> </head> <body>     <header>         <h2>頁(yè)面標(biāo)題</h2>         <a href="#">jike</a>         <nav>             <ul>                 <li><a href="#">學(xué)習(xí)</a></li>                 <li><a href="#">技術(shù)</a></li>                 <li><a href="#">問(wèn)答</a></li>             </ul>         </nav>     </header>     <article>         <header><h2>hello</h2></header>     </article> </body> </html>

footer

<!DOCTYPE html> <html> <head lang="en">     <meta charset="UTF-8">     <title></title> </head> <body>     <footer>         <ul>             <li><a href="#">20150101</a></li>             <li><a href="#">20150102</a></li>         </ul>     </footer>     <article>         <h2>yufa</h2>         <p>zhengwen</p>         <footer>             <h2>jishi</h2>             <p>yufa:yigeduiyuyanlaishuohenzhongyaodeneirongti</p>         </footer>     </article>     <section>         <h2>ssssssssssssss</h2>         <footer>             <ul>                 <li><a href="#">主頁(yè)</a></li>                 <li><a href="#">文檔</li>             </ul>         </footer>     </section> </body> </html>

hgroup

<hgroup>     <h2>ssssssssssssss</h2>     <h3>ssssssssssssss</h3> </hgroup>

address

<body>     <address>         <a href="#">iven</a>         <a href="#">Iven</a>     </address>     <footer>         <div>             <address>                 <a href="#">iven</a>             </address>         </div>     </footer> </body>

極客學(xué)院:http://www.jikexueyuan.com/course/147.html

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。

網(wǎng)站名稱:html5學(xué)習(xí)筆記(4)-創(chuàng)新互聯(lián)
文章地址:http://muchs.cn/article12/dgcidc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設(shè)計(jì)云服務(wù)器、動(dòng)態(tài)網(wǎng)站、建站公司、外貿(mào)建站、品牌網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都app開(kāi)發(fā)公司