Jump to:

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

An element is a part of a webpage. In XML and HTML, 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 some attributes, 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 and tags are not the same thing. Tags begin or end an element in sourcecode, whereas elements are part of the DOM, the document model for displaying the page in the browser.

See also


 このページの貢献者: karuthan, mfluehr, xgqfrms-GitHub, Jeremie, Andrew_Pfeiffer, klez, teoli
 最終更新者: karuthan,