用户工具

站点工具


web:html5
  • html5:将div+table等元素替换为header等语义化元素

meta提供搜索引擎SEO优化信息
link引入外部样式和脚本

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="This is an HTML5 example">
<meta name="keywords" content="HTML5, CSS3, JavaScript">
<title>This text is the title of the document</title>
<link rel="stylesheet" href="mystyles.css">
</head>
<body>
</body>
</html>

header页头用于展示logo、name、subtitle、站点描述等,可嵌套h1-6
nav导航栏,展示菜单或面包屑,可嵌套ul>li
section主信息栏,
aside侧边栏
footer页尾,展示版权、机构等信息

<header>
<h1>This is the main title of the website</h1>
</header>
<nav>
<ul>
<li>home</li>
<li>photos</li>
<li>videos</li>
<li>contact</li>
</ul>
</nav>
<section>
</section>
<aside>
<blockquote>Article number one</blockquote>
<blockquote>Article number two</blockquote>
</aside>
<footer>
Copyright &copy; 2010-2011
</footer>
web/html5.txt · 最后更改: 2020/07/17 16:56 由 admin