Web Progamming : The Body Element

5:59:00 AM |




The <body> Element
The <body> element appears after the <head> element and contains the part of the Web page that you actually see in the main browser window, which is sometimes referred to as body content. It may contain anything from a couple of paragraphs under a heading to more complicated layouts containing forms and tables, and is likely to constitute the majority of any XHTML(eXtensible HyperText Markup Language) document. Most of what you will be
learning in this and the following five chapters will be written between the opening <body> tag and closing </body> tag.


The <body> Element
The <body> element appears after the <head> element and contains the part of the Web page that you actually see in the main browser window, which is sometimes referred to as body content. It may contain
anything from a couple of paragraphs under a heading to more complicated layouts containing forms and tables, and is likely to constitute the majority of any XHTML document. Most of what you will be learning in this and the following five chapters will be written between the opening <body> tag and closing </body> tag.


The <body> element may carry all of the attributes from the attribute groups you are about to meet in the next section. If you are using Transitional XHTML or HTML 4.1, you can use any of the following deprecated attributes on the <body> element (which will be covered later in our coming articles): background bgcolor alink link vlink text
There are also several browser specific attributes that you might see used on the <body> element; these also are later.
language, topmargin, bottommargin, leftmargin, rightmargin, scroll, bgproperties, marginheight, marginwidth





0 comments: