In HTML mode, the format is controlled by "tags" embedded within the message itself. These are special keywords that your browser uses to recognize when, for example, a word should be in italics, or when a new paragraph is starting. In HTML, tags are always enclosed in angle brackets,
< >. Frequently, tags come in pairs that surround the text that is to be affected by them. For example, bold text is surrounded by <B> and </B>. Usually, the closing tag is the same as the opening one, but with a slash, as in this case.
Here are some tags for doing simple formatting:
- Use <B> and </B> around bold text.
</I>around italic text.
<P>to start a new paragraph.
<BR>to force a line break at a certain point.
<HR>to produce a horizontal rule (a horizontal line).
</UL>around a "bullet list", with each item in the list surrounded by
</OL>around a numbered list, again with each item surrounded by
</CENTER>around material that should be centered.
One nice thing about HTML is that there are so many examples of it around. Simply find a web page that does what you want, and use your browser's view source menu item to see the HTML that makes the page appear as it does.
Some tags can be given additional information within the opening tag that further controls the results of the tag. For example, you can use
to make a horizontal rule that is only 50% of the width of the page rather than all the way across it.
Since HTML uses < and > to indicate tags, if you want to include an actual angle-bracket in your message, you need another way to do this. This is accomplished using HTML entities. For example, use
to obtain < and
to obtain >. Because HTML entities start with an ampersand (&), if you want to include one in your HTML message, you must use
There are HTML entities for entering other special characters such as accented letters; these are discussed in the section on Special Characters.
Note, however, that since mathematics is processed separately from (and prior to) the HTML in your message, you can use <, > and & within
\( \)and \[ \]as usual (that is, without the need to convert to the HTML entities). So will produce even in HTML mode.
\(x > 3\)
The tags discussed here are only a small number of the ones available in HTML. There are several additional important ones, in particular, the ones that deal with linking to other files and images. These are discussed in the next section, on Images and Links. Note that some tags have been diasslowed, mainly the ones that indicate global structure (like
<BODY>), which are already part of the document in which your message will be included.