Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Design    Internet

Text formatting and fonts

Text is the easiest thing to add to your web page. Simply put any text you want to appear on your page between the <body> and the <body> tags.

You could just enter the text and do nothing else but the page would look quite boring. So, you can make parts of the text stand out. You can change the text size, the colour, the typeface and the text attributes (bold, italic, underline). For example, you might want to emphasize certain sections of your homepage, or make a title or header bigger than the default text.

The first thing that you can do is use the <font> tag to make changes to the fonts. You use this tag to specify which fonts you want to use on your page and set the size and the colour of the font.

You can also format text much like you do with a normal word processor: you can use a variety of tags to make the text bold or italic, to strike through text, to add sub-and-super scripts and so on.