There are six levels of predefined headers, and they're very simple to use.
Here's an example of each type of header, along with the tags that produced them:
Header 1Header 2Header 3Header 4Header 5Header 6 |
Header 1Header 2Header 3Header 4Header 5Header 6 |
As you can see, they set themselves apart from regular text and are great for use in outlined documents. One of the problems that we'll correct later is that they tend to get very small.
Substitute the header level for the "#" in the tag.
The ALIGN option will align the text however you wish. The default is left-aligned, but you can use RIGHT or CENTER to automatically shift the header appropriately.
NOWRAP tells the browser not to wrap the text of the header to fit the browser window. If your headers are long, it is up to you to specifically place line breaks.
CLEAR will tell the browser how to display this text when placed next to a graphic. The values are LEFT, RIGHT, and ALL; the value you provide indicates what margin must be clear for the header to display.
SRC will take the location of an image as a property, and the image will be displayed before the header text.
Just the same as the way it works for a header, CLEAR is used to indicate which margin needs to be free of content before the next text will be displayed. Acceptable values are LEFT, RIGHT, and ALL, although simply including the word "CLEAR" will use a value of NONE.
Tag The
tag is used to indicate a paragraph change, and is essentially the same as two consecutive
tags.
has a closing tag,
, but it is only required (OK, not required -- but STRONGLY recommended) if you use the options for this tag. The options are shown below:
Again, the NOWRAP option will prevent the text of this paragraph from wrapping in the browser window. Text wrapping will only occur at points where you have specifically placed a
tag.
The ALIGN option will define how all the text of the paragraph is aligned.
Bold | Sample Text | looks like... | Sample Text |
Italics | Sample Text | looks like... | Sample Text |
Underline (Deprecated) | Sample Text | looks like... | Sample Text |
Subscript | Sample Text | looks like... | Sample Text |
Superscript | Sample Text | looks like... | Sample Text |
Emphasized | Sample Text | looks like... | Sample Text |
Big | Sample Text | looks like... | Sample Text |
Small | Sample Text | looks like... | Sample Text |
Strikethrough (Deprecated) | looks like... | ||
Code Sample True Type Keyboard Input Sample text | Sample Text Sample Text Sample Text Sample Text | looks like... looks like... looks like... looks like... | Sample Text Sample Text Sample Text Sample Text |