<body> tag contains the content which is visible within the content area of your web browser.
It contains things like text, hyperlinks, images, tables, lists, and any other visible elements.
In our example, we have included two items in our
The first is just basic text. Since we have not defined the location or any other attributes of this text, it will be displayed at the top, left corner of our web browser. We also have not specified the font face, but if you recall, we did specify the default font color as red in our cascading style sheet. In a moment we will preview this document in our web browser and you will see exactly how it looks.
<head> tag. We are now calling that function in the
Let's preview the file again so we can see how this all comes together in our web browser. We can see the text that was contained in our
<body> tags is displayed here as it should be.
And that's it, once we have closed the
<body> tag, all that remains is closing our
</html> tag to complete the entire html Document!