Movatterモバイル変換


[0]ホーム

URL:


  1. Glossary
  2. Element

Element

Anelement is a part of a webpage. InXML andHTML, an element may contain a data item or a chunk of text or an image, or perhaps nothing. A typical element includes an opening tag with someattributes, enclosed text content, and a closing tag.

Example: in<p class="nice">Hello world!</p>, '<p class="nice">' is an opening tag, 'class="nice"' is an attribute and its value, 'Hello world!' is enclosed text content, and '</p>' is a closing tag.

Elements andtags arenot the same things. Tags begin or end an element in source code, whereas elements are part of theDOM, the document model for displaying the page in thebrowser.

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp