<noembed>:嵌入后备元素

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

<noembed> HTML 元素是一种过时的非标准方式,用于为不支持 <embed> 元素或不支持作者希望使用的 嵌入内容 类型的浏览器提供替代内容或 "fallback" 内容。此元素在 HTML 4.01 及更高版本中已弃用,转而在 <object> 元素的开始和结束标记之间放置后备内容。

¥The <noembed> HTML element is an obsolete, non-standard way to provide alternative, or "fallback", content for browsers that do not support the <embed> element or do not support the type of embedded content an author wishes to use. This element was deprecated in HTML 4.01 and above in favor of placing fallback content between the opening and closing tags of an <object> element.

注意:虽然此元素目前在许多浏览器中仍然有效,但它已过时且不应使用。请改用 <object>,并在元素的开始标签和结束标签之间添加后备内容。

¥Note: While this element currently still works in many browsers, it is obsolete and should not be used. Use <object> instead, with fallback content between the opening and closing tags of the element.

示例

¥Examples

仅当你的浏览器不支持 <embed> 标签时,才会出现 <noembed> 标签内的消息。

¥The message inside <noembed> tag will appear only when your browser does not support <embed> tag.

显示替代内容

¥Show an alternative content

html
<embed type="vide/webm" src="/media/examples/flower.mp4" width="200" height="200">
  <noembed>
    <h1>Alternative content</h1>
  </noembed>
</embed>

规范

Specification
HTML Standard
# noembed

¥Specifications

浏览器兼容性

BCD tables only load in the browser

¥Browser compatibility