html5學習測試

來源:互聯網
上載者:User

標籤:

<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!-- 4秒後自動轉去相應網址 --><!-- <meta http-equiv="refresh" content="4; http://www.baidu.com/" /> --><title>test output</title><style>//body{ background: navy; color: yellow;}</style></head><body><form name="main"><h3>output元素,在firefox中支援得很好</h3><output name="result"></output><script>document.forms.main.elements.result.value = "Hello中國";</script></form><hr><a href="about:blank">baidu</a><script>var a = document.links[0];a.href="http://www.baidu.com";a.protocol = "https";//a.setAttribute("href","http://www.163.com");a.setAttribute("target","_blank");</script><hr><h3>特殊符號</h3>10±0.01 <br>註冊商標® <br>度° <br>元¥ <br>引號" Hello World. "<hr><strong>滑鼠</strong>移上去顯示詳細<em>abbr</em>:<abbr title="eXtensible Hyper Text Markup Language">XHTML</abbr><hr><kbd>Enter</kbd><hr><pre><code>function message(info){window.alert(info);}</code></pre><hr><blockquote>天才是99%的汗水+1%的天分! </blockquote><hr><table border=1><colgroup span="1" style="width:150px;"></colgroup><colgroup><col span="2" style="width:100px; background:red"></colgroup><colgroup><col span="1" style="width:100px; background:#ccff99"></colgroup><colgroup span="1" style="width:150px;"></colgroup><thead>x<tr><td>1</td><td>2</td><td>3</td><td>4</td><td>4</td></tr><tbody><tbody><tr><td>5</td><td>6</td><td>7</td><td>8</td><td>4</td></tr><tr><td>9</td><td>0</td><td>-</td><td>=</td><td>4</td></tr></tbody><tfoot><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>4</td></tr><tfoot></table><hr><form action="" name="frmTest">tel: <input type="tel"> <br>datetime: <input type="datetime"> <br>range: <input type="range" min="0" max="10" value="5"> <br>color: <input type="color" name="colorSel"> <input type="button" onclick="alert(frmTest.colorSel.value)"> <br>optgroup樣本: <select name="selOptGrp" id=""><optgroup label="娛樂"><option value="film">電影</option><option value="film">音樂</option></optgroup><optgroup label="運動"><option value="football">足球</option><option value="basketball">藍球</option></optgroup></select> <br><datalist id="mylist"><option value="film">電影</option><option value="film">音樂</option><option value="football">足球</option><option value="basketball">藍球</option></datalist>提示: <input type="text" name="mysport" list="mylist"> <br>progress: <progress max="100" value="20"></progress></form><h3>menu test fail:</h3><div style="border:1px solid red; width:400px; height:300px; word-wrap:break-word; word-break:break-all;" draggable="true" contextmenu="mymenu">Hello World, This is great!Hello World, This is great!Hello World, This is great!Hello World, This is great!</div><menu id="mymenu" type="toolbar" label="someth"><li>a</li><li>b</li><li>c</li><li>d</li></menu></body></html>

 

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.