我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
您也可以阅读此文章的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:
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
- The
Element
interface, representing an element in the DOM. - More details about elements.
- Web_Components/Custom_Elements