分享

html HTML元素

 小明 2006-11-10

定义

表明文档包含 HTML 元素。

Identifies the document as containing HTML elements.

注释

此元素在 Internet Explorer 及以上版本3.0 的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。

在 Internet Explorer 6 及以后版本中,如果你使用 !DOCTYPE 声明指定为标准兼容模式,此元素将代表画布-既文档内容所能显示的整个区域。当你切换到标准兼容模式时,此元素也将作为所有没有设置定位基准的定位对象的定位容器。如果 !DOCTYPE 声明并不指定标准兼容模式,且使用较早版本的 Internet Explorer,则 body 对象代表文档内容所能显示的整个区域。

此元素不改变显示。

此元素需要关闭标签。

This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.

With Internet Explorer 6 and later, when you use the !DOCTYPE declaration to specify standards-compliant mode, this element represents the canvas—the entire surface onto which a document‘s contents can be rendered. When you switch on standards-compliant mode, this element also becomes the positioning container for positioned elements that don‘t have a positioned parent. When the !DOCTYPE declaration does not specify standards-compliant mode, and with earler versions of Internet Explorer, the body object represents the entire surface onto which a document‘s contents can be rendered.

This element is not rendered.

This element requires a closing tag.

元素示例代码

<html>
<body>
这是一个非常简单的HTML文件。
</body>
</html>

演示示例:一个非常简单的HTML文件

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章