📅  最后修改于: 2020-11-04 00:51:16             🧑  作者: Mango
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. |
Element | Chrome | IE | Firefox | Opera | Safari |
Yes | Yes | Yes | Yes | Yes |