html 笔记:文本

内容划分
<header>, <nav>, <main>, <article>, <aside>, <footer>

div 和 span
实在找不到其它更符合语义的标签时使用。

预格式化文本

<pre>空   格
第二行</pre>

代码

<pre><code>const add = (a, b) => a + b;</code></pre>

上标和下标

<p>E = MC<sup>2</sup></p>
<p>CO<sub>2</sub></p>