📜  HTML body标签

📅  最后修改于: 2020-11-04 00:51:16             🧑  作者: Mango

HTML标签

HTML标签定义在浏览器中显示的HTML文档的主要内容。它可以包含文本内容,段落,标题,图像,表格,链接,视频等。

必须是第二个元素标签,或者应将其放置在和标签。每个HTML文档都需要此标记,并且在整个HTML文档中只能使用一次。

句法

 Place your Content here........

以下是有关标签

Display Inline
Start tag/End tag Both start and End tag
Usage Structural




 Body Tag


 

Example of body tag

This paragraph is written between the body tag

输出:

属性

标记特定的属性

Attribute Value Description
alink color It defines the color of the active link in a document. (Not supported in HTML5)
background URL It determines the background image for the document. (Not supported in HTML5)
bgcolor color It determines the background color of the content. (Not supported in HTML5)
link color It determines the color of the unvisited link. (Not supported in HTML5)
text color It determines the color of the text in the document. (Not supported in HTML5)
vlink color It determines the color of the visited link. (Not supported in HTML5)
onload Function call on page loading
onunload Function call when user leaves the page
onfocus Function call when document receives focus by user.
onblur Function call when document loses focus by user.

全局属性

属性支持HTML中的全局属性。

事件属性

属性支持HTML中的事件属性。

支持的浏览器

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes