Once you've built your document, you are ready to start putting things onto your page. Undoubtedly, you are going to want to have some text. HTML will, by default, print any text in one continuous line, wrapping at the edge of the browser window to a new line, no matter how many spaces or hard returns you put in the text document from which the browser is reading. It is here that you need the text operators to deal with formatting the text as you want it.
Here are some of the most important text formatting tags that you will use:<b>text</b> - Make the text BOLD
Note that these tags can all be used in conjunction with eachother, so for example, if you were to have:<pre><u><b><i>Text</i></b></u></pre>
Then the word "Text" would appear as a bold, italic, underlined, fixed width font.
Note the use of strict nesting of tags inside one another
Now that you can format the style of text, you will need to deal with the spacing of the text. Here are the tags that you will need for that:<br> - Line Break. This has no closing tag. For each BR tag, the browser inserts a line break, and then continues reading the rest of the HTML document.
Note that this tag is Netscape specific, and will have no effect on any other browser
Finally, we can adjust the size, type, and colour of particular bits of text in the document using the following tag:<font size="*" face="selection1|selection2|selection3" color="colour">
Here, * stands for a number, between 1 and 7. You can also insert a + or - in front of the number, if you want to make the font size relative to the base font of the page.
The face section allows you to define 3 different selections of the type face that you wish to use. If the browser does not have selection 1, then it will look for selection 2, and then selection 3. If none of the font faces are found, then it will revert to the default system font, which can vary from machine to machine, and the user's preferences.
The color section allows you to define the colour of the text between the on and off font tags. It works exactly the same way as we talked about in the last section, with a choice between predefined colours, and hexidecimal declarations of colour. Don't forget to put the "#" before the hex-code though, if you use it.
If you don't define any of these values, then each section will remain as it has already been defined. That is, at default size, and font face, and the same colour as defined in the body tag. As soon as the font tag is ended, then all text after that will revert to this as well.
Finally, as you build larger and larger, and more complex files, you may find it hard to see exactly which section of the page you are looking at, when looking at the source. To help you round this, you can comment as often and as much as you like, and hide all those comments from the browser, so that it does not interpret them:<!-- Place your comment here -->
Everything between <!-- and --> will be hidden, no matter how far apart then beginning and ending tags are. Get used to commenting often, as it will help other people understand what you've written.