1) The Document Body:
The document body is the important of the matter; it's where you put the contents of your document. The <body> tag delimits the document body.
2) The <body> Tag:
Within HTML 4.0, the <body> tag has no attributes and is little more than a placeholder in your documents. Various browsers, as we'll see, have extended the tag to give greater control over your document's appearance.
<body>
Function:
Defines the document body
Attributes:
in HTML 2.0
ALINK (Netscape only), BACKGROUND (extension), BGCOLOR (extension), BGPROPERTIES (Internet Explorer only), LEFTMARGIN (Internet Explorer only), LINK (extension), TEXT (extension), TOPMARGIN (Internet Explorer only), and VLINK (extension)
in HTML 4.0
BACKGROUND=URI (background image for document)
BGCOLOR=Color (background color for document)
TEXT=Color (text color for document)
LINK=Color (link color for document)
VLINK=Color (visited link color for document)
ALINK=Color (active link color for document)
ONLOAD=Script (document has been loaded)
ONUNLOAD=Script (document has been exited)
End tag:
</body>; may be omitted
Contains:
body_content
Used in:
html_tag
Anything inside the <body> tag and its ending counterpart </body> is called body content. The simplest HTML document might have only a sequence of text paragraphs within the <body> tag. More complex documents will include heavily formatted text, graphical figures, tables, and a variety of special effects.
Since the position of the <body> and </body> tags can be inferred by the browser, they can safely be omitted from the document. However, like the <html> and <head> tags, we recommend that you include the <body> tags in your document to make them more easily readable and maintainable.
NOw we can begin our tour of HTML document (web-page designing). As you know HTML is not enough to maked dynamic and interactive web-page.
TML is just the beginning journey of the web-design.
No comments:
Post a Comment