この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
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, a content, and a closing tag:
Element and tag are not interchangeable: tags begin or end an element in the source, whereas elements are part of the DOM, the document model for displaying the page in the browser.
See also
- The
Element
interface, representing an element in the DOM. - More details about elements.