平常用哪些语义标签

  1. header / main / aside / section / article / footer / canvas / video / audio
  2. canvas( beginPath, strokeStyle, stroke 闭合 )
  3. video( loop controls poster, src, autoplay
<canvas id="canvas"></canvas>
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'red';
ctx.fillRect(0, 0, 200, 100);

🌈 讲一讲 HTML 语义化

用正确的标签做正确的事情

在写 HTML 代码时,语义化实践中应该注意什么 ?