Body of an HTML Document
The BODY of an HTML document is where all the information you wish to view must appear. The text must be carefully marked-up, paragraphs must begin with the <p> marker and the end of each paragraph must be clearly marked using the HTML tag </p>.
Web browsers are, generally speaking, very robust. That is, they will always show some presentation of the text - albeit the wrong or unintended layout. If the body text doesn't contain paragraph breaks then the text will be viewed as one long paragraph! (See what the ASCII text file example.txt looks like if it is saved as example.html.)
The region associated with the BODY of a document should be declared using the following HTML tags:
- Should appear after the </head> definition.
- Should appear after the document's text but before the </html> tag.
An HTML document can be as freely formatted as you wish. The ends of words and sentences are indicated by spaces. It doesn't matter how many spaces you use; one is as good as 100! The end of lines counts as one space. Lines can be left broken in odd places and your local Web viewer will join them together into one flowing paragraph.
Note: HTML tags should always be nested and never over-lapping. Most HTML tags are like brackets - they form pairs; and the various pairs must always match. For example, the brackets: [(< and >)] match; whereas the grouping: [(< and )]> form a mis-match!