<H1>First Heading</H1>
A set of lines in an HTML document
that look like they are divided into three
lines of text.
A set of lines in an HTML document that look like they are divided into three lines of text.
A set of lines in an HTML document<br>
that look like they are divided into three<br>
lines of text.
A set of lines in an HTML document
that look like they are divided into three
lines of text.
<OL> The beginning of the ordered list.
<LI> The first item for the list.
<LI> The second item for the list.
</OL> The end of the ordered list.
That will display as:
You can nest subpoints and specify the symbol used for each sublevel by adding the "TYPE" specification. For example.
<ol>
<LI> This is a main point
<ol TYPE=A>
<LI>This is a subpoint
<ol TYPE=a>
<LI>This is a sub subpoint
<ol TYPE=I>
<LI>This is a sub subpoint
<ol TYPE=i>
<LI>This is a sub subpoint
</OL>
</OL>
</OL>
</OL>
</OL>
Here is the code for an example.
<UL> The beginning of the unordered list.
<LI> The first item for the list.
<LI> The second item for the list.
</UL> The end of the unordered list.
That will display as:
You can nest subpoints and specify the symbol used for each sublevel by adding the "TYPE" specification. For example.
<ul>
<LI> This is a main point
<ul TYPE=disc>
<LI>This is a subpoint with a disc
<ul TYPE=circle>
<LI>This is a sub subpoint with a circle
<ul TYPE=square>
<LI>This is a sub subpoint with a square
</UL>
</UL>
</UL>
</UL>
Here is an example of the code for a definition list.
<DL>
<DT> This is the first point (definition title)
<DD> with one subpoint (called a definition, definition)(<br>)
<br> the second subpoint should be separated by a line break .
<DT> This is the second point
<DD> with a subpoint
</dl>
And the end of the list
This code will display as:
<A HREF="http://science.widener.edu/~svanbram/">Scott Van Bramer's Web Page</A>
And appear in a browser as:
The elements here include:
<A NAME="end">
<A NAME="return to here">
The text within quotes is the name of the location. The name is not displayed by the browser, but links can point to it. There is a Name tag here with the name "return to here": and another tag with the name "end" at the end of this document.
The HTML below will jump to the end of the document. There is a link at the very end that will return to this point.
<A HREF="#end">Goto the end</A>
and displays as:
science.widener.edu/svb/htmltalk/ccce/introbasic.html
Addresses may be copied and pasted from the location bar in the browser. Typically the begin with the name of the server (science.widener.edu) and are followed by the file path ( /svb/htmltalk/ccce/) and a file name (introbasic.html ). If a file name is not specified (introbasic.html) the server will return a directory listing. If there is a file named index.html in the directory the server will return that file. The main document in a directory usually has the name index.html.
The address can also specify a location in the document defined with a NAME tag (detailed above). This example shows an address that will jump to a location named "link tags" in the document "basic.html" on the server "science.widener.edu" in the file directory "svb/htmltalk/ccce".
<A HREF="http://science.widener.edu/svb/htmltalk/basic.html#link tags">Examples of links</A>
The link will appear in the browser as a link to the beginning of this section
Most browsers can view two different types of graphics files. The GIF (Graphical Image Format) file format works best for line art and small images. This file type preserves sharp lines and gets excellent compression when there are large spaces with the same color. The gif image below is inserted with the following HTML code:
<IMG SRC="h_int_d.gif" ALT="Proton NMR Spectrum of citronellal" WIDTH=545 HEIGHT=322>
Notice that the HTML code specifies the width and height of the image. This allows the browser to format the rest of the web page while the image downloads. If the image size is not specified the browser must wait to render the rest of the document. The ALT command in the tag specifies text to displayed until the graphic downloads. It is also important for readers with limited vision who rely upon a text to voice program to hear a web page.
The JPEG (Joint Photographic Experts Group) file format works best for photographs and color images. Some resolution is lost for line art (lines are not a crisp) but file size for photographs is dramatically reduced. This compression works by using shades of color to reduce the file size.
<IMG SRC="sey98h.jpg" ALT="Taking a sextant reading " WIDTH=301 HEIGHT=198>
Because images files can be large, spend some time editing the graphic so that it is as small as practical and use as much compression as you can. If you really need to use a high resolution image it is good form to include a thumbnail in the web page. This small image is a link to the full size image. Interested readers can then download the high resolution figure.
In addition to figures, many other multimedia files may be inserted into a web page. This includes three dimensional renderings of molecules, spectra, video clips, and more.
<TABLE WIDTH=60% ALIGN=center BORDER>
<CAPTION ALIGN=top>
Table Caption</CAPTION>
<TR>
<TH>Col 1 header</TD>
<TH>Col 2 header</TD>
<TH>Col 3 header</TD>
</TR>
<TR>
<TD>data 1a</TD>
<TD>data 2a</TD>
<TD>data 3a</TD>
</TR>
<TR>
<TD>data 1b</TD>
<TD>data 2b</TD>
<TD>data 3b</TD>
</TR>
<TR>
<TD>data 1c</TD>
<TD>data 2c</TD>
<TD>data 3c</TD>
</TR>
</TABLE>
And the table itself displays in a browser as:
Col 1 header | Col 2 header | Col 3 header |
---|---|---|
data 1a | data 2a | data 3a |
data 1b | data 2b | data 3b |
data 1c | data 2c | data 3c |