HTML标签
<!-->: HTML注释,
注释不会在浏览器中显示
<!DOCTYPE>: <!DOCTYPE> 声明必须是 HTML 文档的第一行,位于 <html> 标签之前
<!DOCTYPE> 声明不是 HTML 标签;它是指示 web 浏览器关于页面使用哪个 HTML 版本进行编写的指令
在 HTML 4.01 中,<!DOCTYPE> 声明引用 DTD,因为 HTML 4.01 基于 SGML。DTD 规定了标记语言的规则,这样浏览器才能正确地呈现内容。HTML5 不基于 SGML,所以不需要引用 DTD
提示:请始终向 HTML 文档添加 <!DOCTYPE> 声明,这样浏览器才能获知文档类型
常用的标签
<div><span><a><img><label><p><button>
<mark>
<progress>
<time>
<em><strong>
<canvas>
<iframe>
<embed>
<video>
<br><hr>
<b><i>
<!DOCTYPE>
<html>
<head>
<title></title>
<meta>
<link>
<script></script>
<style></style>
</head>
<body>
<header>
<h1> - <h6>
<nav></nav>
</header>
<main>
<article>
<aside></aside>
</article>
<details>
<summary></summary>
</details>
</main>
<section></section>
<footer></footer>
</body>
</html>
<ul>
<li></li>
</ul>
<ol>
<li></li>
</ol>
<dl>
<dt></dt>
<dd></dd>
</dl>
<form>
<fieldset>
<legend></legend>
<input>
<select>
<optgroup>
<option></option>
</optgroup>
</select>
<textarea></textarea>
</fieldset>
</form>
<table>
<caption></caption>
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
</tr>
</tbody>
<tfoot></tfoot>
</table>
<audio>
<source></source>
</audio>
<figure>
<figcaption></figcaption>
</figure>
用到特定情景下的标签
<address>
<area>
<blockquote>
<datalist>
<map>
<q>
<sub>
<sup>
用到特别少的标签
<base>
<cite>
<code>
<del>
<dfn>
<dialog>
<ins>
<kbd>
<keygen>
<meter>
<noscript>
<object>
<output>
<param>
<pre>
<small>
<track>
<var>
<wbr>
不会用到的标签
<bdi>
<bdo>
<col>
<colgroup>
<command>
<menu>
<menuitem>
<rp>
<rt>
<ruby>
<s>
<samp>