过时
This 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.

过时 HTML <element> element was part of the Web 组件 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.

注意: This element has been removed from the specification. See this for more information from the editor of the specification.

内容类别 Transparent content .
准许内容 ???
Tag omission None, both the starting and ending tag are mandatory.
Permitted parent elements ???
DOM 接口 HTMLElement

属性

此元素包括 全局属性 .

规范

<element> element was formerly in a draft specification of Custom Elements but it has been removed.

浏览器兼容性

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. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
element 弃用 非标 Chrome ? Edge ? Firefox 不支持 No IE 不支持 No Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android 不支持 No Opera Android ? Safari iOS ? Samsung Internet Android ?

图例

不支持

不支持

兼容性未知 ?

兼容性未知

非标。预期跨浏览器支持较差。

非标。预期跨浏览器支持较差。

弃用。不要用于新网站。

弃用。不要用于新网站。

另请参阅

元数据

  • 最后修改: