Basic HTML

Advance HTML

HTML Tags Reference

HTML Code Generator


HTML <body> Tag


HTML <body> tag is a main(body) section of web document. place on <body> tag inside <html> to </html> tag.

Mostly all elements are supported this tags.


Example-Code:

<body bgcolor="#000000" text="#FF6600"><b>This is a body part.</b>
 </body>
Online Try This Code Your Self....   »

Example-Result:

This is a body part.

<body> Tag Attributes

Attributes Value Description
background "URL" Specifies the image open path.
bgcolor "#XXXXXX" Specifies the color name or color code in background document.
text "#XXXXXX" Specifies the color name or color code in text to be display on web document.
link "#XXXXXX" unvisited links in a link document.default color blue.
vlink "#XXXXXX" visited links in a link document.default color maroon.
alink "#XXXXXX" active links in a link document.default color green.

Dynamic Attributes

<a> tag supported following Dynamic attributes.:

Attributes Value Description
id ID_Name Declared unique id for the element.
class Predefined_Class Used in Cascading Style Sheet (CSS).
style style_Attributes CSS code specify inline the HTML element is presented.
title Title_Description Display on the "tooltip" for your elements.

Event Attributes

<a> tag supported following Event attributes.:

Attributes Value Description
onclick "Java_script" clicked on object when script tobe run.
ondblclick "Java_script" double click on object when script tobe run.
onload "Java_script" object has load when script tobe run.
onunload "Java_script" unload to the browser window when script tobe run.
onkeydown "Java_script" key is pressed when script tobe run.
onkeypress "Java_script" key is pressed over element then released when script tobe run.
onkeyup "Java_script" key is released over element when script tobe run.
onmousedown "Java_script" mouse button was pressed over an element when script tobe run.
onmouseout "Java_script" mouse pointer release over an element when script tobe run.
onmousemove "Java_script" run mouse pointer moved when script tobe run.
onmouseover "Java_script" run mouse pointer move over when script tobe run.
onmouseup "Java_script" mouse button is released when script tobe run.