HTML 超文本标记语言 describes a web page with tags 标签. A tag is a word in angle brackets, like <p>. Most come in pairs — an opening tag <p> and a closing tag </p> wrap some content. A tag plus its content is an element 元素.
- The browser draws whatever is between the tags.
- A tag you forget to close, or spell wrong, may not show correctly.
HTMLはタグを使ってウェブページを記述します。タグは角括弧で囲まれた単語で、例として <p> があります。ほとんどのタグはペアになっており、開きタグ <p> と閉じタグ </p> がコンテンツを包み込みます。タグとそのコンテンツのセットを要素と呼びます。
<p>Hello, world!</p>
<p>This is my first web page.</p>
- ブラウザはタグ間に書かれた内容进行を描写します。
- 閉じタグを忘れたり、スペルが間違ったりすると、正しく表示されないことがあります。
One element = opening tag + content + closing tag → 一つの要素 = 開始タグ + 内容 + 終了タグ