HTML Basics
Heading & Character Formatting
Paragraph, Block Quote, Line Break
Unordered, Ordered, Definition Lists
Hypertext Links, Images
Tabs & Columns
Other Extensions
Supported HTML Tags
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>
<META... (optional)></HEAD>
<TITLE>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. It is ignored when using the PalmPilot's large font. (PalmIII only: If the META option PalmIII is included in the document, the PalmIII's large bold font is selected when appropriate. Using the PalmIII option produces OnTap documents that are not completely compatible with earlier versions of PalmOS devices).
Highlight.
<BLINK>...</BLINK>
OnTap uses the BLINK tag to display text in reverse (white on black).
Citation.
<CITE>...</CITE> Emphasize.
<EM>...</EM>
Font Size.
<FONT SIZE=n>...</FONT>
Font ID.
<FONT ID=7>...</FONT>
Italics.
<I>...</I>
Strong.
<STRONG>...</STRONG>
Superscript.
<SUP>...</SUP>
Subscript.
<SUB>...</SUB>
Teletype.
<TT>...</TT>
Underline.
<U>...</U>
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.
Supported Attributes (H1..H6)
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.
Supported Attributes (P)
The <BLOCKQUOTE> element (or <BQ>) is used for extended
quotations. For example:
<BLOCKQUOTE> produces:
Supported Attributes (BQ)
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> produces:
Supported Attributes (UL)
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> produces
Supported Attributes (OL)
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> produces:
Supported Attributes (DL)
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.
Supported Attributes (A)
The image <IMG> element is used to place an image in the document. For example:
<IMG SRC="icon.gif"> places the image in the file icon.gif into the document.
OnTap accepts color, greyscale, or black & white GIF images. Images are restricted to approximately 140 pixels wide by 140 pixels in height (the OnTap screen size). Also, when attaching files to send to the OnTap Server, attach the image files first.
Supported Attributes (IMG)
Center The <BR> tag forces a line break. <BR clear=page>
is a handy way to force text to the top of the screen of a Palm OS device.
Supported Attributes (BR)
Use tabs to create neatly formatted columns. You can set tabs, clear tabs,
tab to a specific screen location, and align tabs left, center or right.
Use the <TAB> tag as follows:
<TAB> move to next tab stop
n - is the horizontal position in pixels (0 to 160)
For example:
<tab clearall>
<!-- align center headings in two columns -->
<!-- put sub headings in four columns -->
<!-- data follow -->
produces:
Supported Attributes (TAB)
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.
Special META Attributes
<A>,
<ADDRESS>,
<B>,
<BLINK>,
<BLOCKQUOTE>,
<BODY>,
<BR>,
<BQ>,
<CENTER>,
<CITE>,
<DD>,
<DL>,
<DT>,
<EM>,
<FONT SIZE>,
<H1>..<H6>,
<HEAD>,
<HTML>,
<I>,
<IMG>,
<LH>,
<LI>,
<META>,
<OL>,
<P>,
<STRONG>,
<SUB>,
<SUP>,
<TAB>,
<TITLE>,
<TT>,
<U>,
<UL>,
more...
Same as <I>
Same as <I>
Selects the PalmPilot's larger font if n > 3. Otherwise, the PalmPilot's smaller font is selected.
Palm III only: Explicitly selects the Palm III's larger bold font. Using this tag produces OnTap documents that are not completely compatible with earlier versions of PalmOS devices.
is for italics, but the PalmPilot has no italics font. The italics tag displays the
same as <B>
Same as <B>
Example: E=mc<sup>2</sup> produces E=mc2
Example: H<sub>2</sub>O produces H2O
Selects the small font, since the PalmPilot has no fixed-width font.
Produces underlined text.
Heading Styles
Paragraphs
The Block Quote
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>
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.
Unordered Lists
<LH>Table Fruit</LH>
<LI>apples
<LI>oranges
<LI>bananas
</UL>
Ordered Lists
<LH>Table Fruit</LH>
<LI>apples
<LI>oranges
<LI>bananas
</OL>
Definition Lists
<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>
Hypertext Links
Images
Miscellany
<CENTER>...</CENTER> can be used
to center text. Usually the ALIGN=CENTER option of
the block elements is a better choice.
Break
Tabs and Columns
<TAB TABTO=n ALIGN=?> move directly to n
<TAB CLEARALL> clear all tab stops
<TAB SET TABTO=n ALIGN=?> set a new stop at n
? - is one of left, right, or center.
<tab set tabto=36 align=right>
<tab set tabto=44 align=left>
<tab set tabto=116 align=right>
<tab set tabto=124 align=left>
<tab tabto=40 align=center>Southbound
<tab tabto=120 align=center>Northbound
<br>
<tab>time<tab>/train<tab>time<tab>/train<br>
<tab>9:45a<tab>/34<tab>11:23a<tab>/37<br>
<tab>10:34a<tab>/36<tab>1:10p<tab>/41<br>
Southbound Northbound time /train time /train 9:45a /34 11:23a /37 10:34a /36 1:10p /41
Other Extensions
By using the <META...> tag in a document's <HEAD> section, OnTap offers these special features:
Supported HTML Tags