ObsoleteThis feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
The obsolete HTML <element>
element was part of the Web Components specification; it was intended to be used to define new custom DOM elements. It was removed in favor of a JavaScript-driven approach for creating new custom elements.
Note: This element has been removed from the specification. See this for more information from the editor of the specification.
Content categories | Transparent content. |
Permitted content | ??? |
Tag omission | None, both the starting and ending tag are mandatory. |
Permitted parent elements | ??? |
DOM interface | HTMLElement
|
Attributes
This element includes the global attributes.
Specifications
The <element>
element was formerly in a draft specification of Custom Elements but it has been removed.
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Chrome
? |
Edge
? |
Firefox
No support No |
IE
No support No |
Opera
? |
Safari
? |
WebView Android
? |
Chrome Android
? |
Firefox Android
No support No |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
? |
Legend
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- Non-standard. Expect poor cross-browser support.'
- Non-standard. Expect poor cross-browser support.
- Deprecated. Not for use in new websites.'
- Deprecated. Not for use in new websites.
See also
- Web components:
<content>
,<shadow>
,<slot>
, and<template>
<element>: The Custom Element element (Obsolete) by Mozilla Contributors is licensed under CC-BY-SA 2.5.