Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Element

Nuestros voluntarios aún no han traducido este artículo al Español. Únete a nosotros y ayúdanos a traducirlo

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:

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.

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

Etiquetas y colaboradores del documento

 Colaboradores en esta página: Jeremie, Andrew_Pfeiffer, klez, teoli
 Última actualización por: Jeremie,