Home
About Isis
Support
Download

Isis 3

Documentation
Tutorials
Technical Documents

Isis 2

Documentation
Tutorials
Technical Documents

Search

USGS

Isis 3 Documentation


Style Guide

Object source code styles and conventions

Home

Introduction | Mandatory Commands | Useful Commands | Example Header | Example Implementation | HTML Quick Reference


Rules of Thumb

These rules are not a matter of taste, style, or preference... they're a matter of conformance to standards.

Reference

HTML Tags

b Bold. Renders current font as boldface. <b>This is bolded</b> appears as This is bolded
i Italic. Renders current font in italics. <i>This is italicized</i> appears as This is italicized
em Phrase element meaning "emphasis". Generally rendered by browsers in italics. <em>This is emphasized</em> appears as This is emphasized
strong Phrase element meaning "strong emphasis". Generally rendered by browsers in boldface. <strong>This is strongly emphasized</strong> appears as This is strongly emphasized
sup Superscript Bob<sup>1</sup> appears as Bob1
sub Subscript Bob<sub>1</sub> appears as Bob1
tt Teletype font. Rendered in browser's default fixed-width font. <tt>This is teletype</tt> appears as This is teletype
pre Preformatted text. Generally rendered in browser's default fixed-width font, with whitespace intact, and automatic word wrap disabled. Generally browsers render all whitespace within this tag, and add padding before and after the tagged text. This is not a quick and dirty alternative to tables! Use if for code snippets, data file snippets, etc.
            <pre>
              This is preformatted text.
              53.6    82.1    536.3
               8.53  137.6     66.3
            </pre>
            
appears as
              This is preformatted text.
              53.6    82.1    536.3
               8.53  137.6     66.3
            

Whereas without the PRE tag, you'd get this:

This is preformatted text. 53.6 82.1 536.3 8.53 137.6 66.3

table Table start/end

Contains "tr" and "caption" tags. See more table tags below. Eg.

            <table>
              <caption>My table caption</caption>
              <tr>
                <th>
                Row 1, Column 1 Header
                </th>
                <th>
                Row 1, Column 2 Header
                </th>
                <th>
                Row 1, Column 3 Header
                </th>
              </tr>

              <tr>
                <td>
                Row 2, Column 1
                </td>
                <td>
                Row 2, Column 2
                </td>
                <td>
                Row 2, Column 3
                </td>
              </tr>

              <tr>
                <td>
                Row 3, Column 1
                </td>
                <td>
                Row 3, Column 2
                </td>
                <td>
                Row 4, Column 3
                </td>
              </tr>
            </table>
            

Looks like:

My table caption
Row 1, Column 1 Header Row 1, Column 2 Header Row 1, Column 3 Header
Row 2, Column 1 Row 2, Column 2 Row 2, Column 3
Row 3, Column 1 Row 3, Column 2 Row 4, Column 3
caption Adds a caption to this table
tr Table row start/end Contains TH and TD tags
th Table row or column header cell Usually rendered with highlighting, bolding, or other special formatting to make the cell stand out. Some accessibility readers will audibly repeat the contents of the TH before each cell in the column/row.
td Table cell Stardard table cell in a row

Special Characters

Some keyboard characters are reserved for special use. Some characters you may wish to use are not accessible from the keyboard. Use the special character sequences below.

& &amp; Ampersand
< &lt; Less than
&le; Less than or equal
> &gt; Greater than
&ge; Greater than or equal
° &deg; Degree
± &plusmn; Plus or minus
÷ &divide; Division symbol
× &times; Multiplication symbol

Document History

Deborah Lee Soltesz2005-10-31 Fixed format instructions for @history (date and author were inverted)
Deborah Lee Soltesz2006-06-05 Updated @image use instructions and conventions
Deborah Lee Soltesz2006-07-29 Update CVS tags described in the guide so that CVS wouldn't automatically replace the tag with actual information when this document is checked in. (Replaced $ signs with ISO8859-1 entity, treating the $s as special characters).