Tag (タグ)
HTML において、タグは要素の作成に使われます。段落を表す <p>
のように、HTML の要素の名前が山括弧の中に入ります。なお、終了タグは </p>
のように、名前の前にスラッシュがつきます。そして空要素では終了タグは不要で、付けることもできません。属性が記述されていない場合は、それぞれ既定値が使われます。
詳細情報
一般知識
- Wikipedia 上の HTML要素
- WHATWG 上の HTML 要素の構文
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2024 by individual mozilla.org contributors. Content available under a Creative Commons license.