1
2
<!-- will download as "" -->
<a href="/files/" download="">Download Your Expense Report</a>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Your Website</title>
</head>
<body>
<header>
<nav>
<ul>
<li>Your menu</li>
</ul>
</nav>
</header>
<section>
<article>
<header>
<h2>Article title</h2>
<p>Posted on <time datetime="2009-09-04T16:31:24+02:00">September 4th 2009</time> by <a href="#">Writer</a> - <a href="#comments">ments</a></p>
</header>
<p>Pellentesque habitant morbi tristique senectus us et malesuada fames ac turpis egestas.</p>
</article>
<article>
<header>
<h2>Article title</h2>
<p>Posted on <time datetime="2009-09-04T16:31:24+02:00">September 4th 2009</time> by <a href="#">Writer</a> - <a href="#comments">ments</a></p>
</header>
<p>Pellentesque habitant morbi tristique senectus us et malesuada fames ac turpis egestas.</p>
</article>
</section>
<aside>
<h2>About section</h2>
<p>Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
</aside>
<footer>
<p>Copyright 2009 Your name</p>
</footer>
</body>
</html>
.HTML5页面结构(见上)
同一页面显示
<head>
<title>简洁TAB</title>
<script type="text/javascript">
function nTabs(thisObj,Num){
if( == "active")return;
var tabObj = ;
var tabList = (tabObj).getElementsByTagName("li");
for(i=0; i <; i++)
{
if (i == Num)
{
= "active";
(tabObj+"_Content"+i). = "block";
}else{
tabList[i].className = "normal";
(tabObj+"_Content"+i). = "none";
}
}
}
</script>
<style type="text/css">
<!--
*{margin:0;
html5精妙代码(精选) 来自淘豆网m.daumloan.com转载请标明出处.