HTML provides a simple way to markup text files that will be put on the PalmPilot. With HTML, you can mark the paragraphs in your text, indicate bold or underine items, create itemized lists, etc.
For OnTap, an HTML document should have the following structure:
<HTML>
<HEAD>
<TITLE> </HEAD>your title goes here </TITLE>
<BODY>your text goes here </BODY>
</HTML>
Within the limits of the PalmPilot's three fonts (small, large, and bold small), OnTap supports these tags to select character formats.
Address.
<ADDRESS>...</ADDRESS>
Same as <I>
Bold. <B>...</B> displays bold. This only works with the small (normal) size font.
Example:
<B>bold text</B>
displays bold text
Example:
<BLINK>highlighted</BLINK>
displays
Citation.
<CITE>...</CITE>
Same as <I>
Emphasize.
<EM>...</EM>
Same as <I>
Font Size.
<FONT SIZE=n>...</FONT> select the PalmPilot's
larger font if n > 3.
Otherwise, the PalmPilot's smaller font is selected.
Italics. <I>...</I> is for italics, but the PalmPilot has no italics font. The italics tag displays the same as <B>
Strong.
<STRONG>...</STRONG>
Same as <B>
Example:
E=mc<sup>2</sup> produces E=mc2
Example:
H<sub>2</sub>O produces H2O
Teletype. <TT>...</TT> selects the small font, since the PalmPilot has no fixed-width font.
Example:
<U>underlined text</U> produces underlined text
OnTap allows six levels of headings. A heading element implies all the font changes, paragraph breaks before and after, and any white space necessary to render the heading. The heading elements are H1, H2, H3, H4, H5, and H6 with H1 being the highest (or most important) level and H6 the least.
The <P> element is used to define a paragraph. The text up to the </p> or the next <p> element is treated as being part of the current paragraph.
The <BLOCKQUOTE> element (or <BQ>) is used for extended quotations. For example:
<BLOCKQUOTE>
Four score and seven years ago, our fathers brought forth to this continent a new nation, conceived in liberty, and dedicated to the proposition that all men are created equal.
</BLOCKQUOTE>
produces:
Four score and seven years ago, our fathers brought forth to this continent a new nation, conceived in liberty, and dedicated to the proposition that all men are created equal.
An unordered list typically is a bulleted list of items. The opening list tag must be <UL>. It is followed by an optional list header (<LH>caption</LH>) and then by the first list item (<LI>). For example:
<UL>
<LH>Table Fruit</LH>
<LI>apples
<LI>oranges
<LI>bananas
</UL>
produces:
An ordered list typically is a numbered list of items. The opening list tag must be <OL>. It is followed by an optional list header (<LH>caption</LH>) and then by the first list item (<LI>). For example:
<OL>
<LH>Table Fruit</LH>
<LI>apples
<LI>oranges
<LI>bananas
</OL>
produces
A definition list is a list of terms and corresponding definitions. The definition text is typically indented with respect to the term.
The opening list tag must be <DL>. It is followed by an optional list header (<LH>caption</LH>) and then by term names (<DT>) and definitions (<DD>). For example:
<DL>
<LH>List Header</LH>
<DT>Term 1
<DD>This is the definition for Term1.
<DT>Term 2
<DD>This is the definition for Term2.
</DL>
produces:
The anchor <A> element is used to define the start and/or destination of a hypertext link. For example:
<A NAME="target"> defines the destination named, target.
<A HREF="#target">any text here</A> defines the link to the name, target.
Center
<CENTER>...</CENTER> can be used
to center text. Usually the ALIGN=CENTER option of
the block elements is a better choice.
Line Break
<BR> forces a line break.
OnTap adds two non-standard character entities to its HTML.
&tm; inserts a trademark symbol (&tm;) into the text.
&newline; is used to begin a new line within the <TITLE>...</TITLE> tags. The OnTap Reader displays these extra lines in a document's info dialog.
<A>,
<ADDRESS>,
<B>,
<BLINK>,
<BLOCKQUOTE>,
<BODY>,
<BR>,
<BQ>,
<CENTER>,
<CITE>,
<DD>,
<DL>,
<DT>,
<EM>,
<FONT SIZE>,
<H1>..<H6>,
<HEAD>,
<HTML>,
<I>,
<LH>,
<LI>,
<OL>,
<P>,
<STRONG>,
<SUB>,
<SUP>,
<TITLE>,
<TT>,
<U>,
<UL>,
more...