表明文檔包含 HTML 元素。
Identifies the document as containing HTML elements.
此元素在 Internet Explorer 及以上版本3.0 的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的腳本中可用。
在 Internet Explorer 6 及以后版本中,如果你使用 !DOCTYPE 聲明指定為標準兼容模式,此元素將代表畫布-既文檔內(nèi)容所能顯示的整個區(qū)域。當你切換到標準兼容模式時,此元素也將作為所有沒有設置定位基準的定位對象的定位容器。如果 !DOCTYPE 聲明并不指定標準兼容模式,且使用較早版本的 Internet Explorer,則 body 對象代表文檔內(nèi)容所能顯示的整個區(qū)域。
此元素不改變顯示。
此元素需要關(guān)閉標簽。
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>