The <body> element appears after the <head> element and contains the part of the Web page that we actually see in the main browser window, which is sometimes referred to as body content.
A <body> element may contain anything from a couple of paragraphs under a heading to more complicated layouts containing forms and tables.
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.
Example:
Here is the example of using body tag.
<body>
<p>This is a paragraph tag.</p>
</body>
Putting all together:
Now if we will put all these tags together, it will constitute a complete HTML document as follows:
<html>
<head><title>HTML Basic tags</title><meta name="Keywords" content="HTML, Web Pages" /><meta name="description" content="HTML Basic Tags" /><base href="http://learnhtmlandcssonline.blogspot.com/" /><link rel="stylesheet" type="text/css" href="tp.css" /><script type="text/javascript"> _uacct = "UA-44808176-1"; urchinTracker(); </script></head>
<body><p>This is a paragraph tag.</p>
</body>
</html>

No comments:
Post a Comment