Tables are useful for displaying informations. The tag is <TABLE>...</TABLE>. Inside of the TABLE tags you set the Rows (<TR>...</TR>). Inside each row tag you have one or more of either a heading (<TH>Heading text</TH>) or data tag(s) (<
Below are two example that include the BORDER tag inside the opening TABLE tag. They also include a Caption above the Table. The second example shows the use of Headers across the top as well as on the left. Notice the blank cell in the upper left corner. Check out the source code.
Guitars | Keyboards | Signal Processors | Recorders |
---|---|---|---|
Frankenstein | DX7 | MicroVerb | DA-30 |
Kramer | Fender Rhodes | YamahaSPX90 | Nachamichi |
MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY | |
---|---|---|---|---|---|
week 1 | sing the Blues | listen to Bird | transcribe Zappa | phone home | save the world |
week 2 | find b5 | discover #11 | worship Bach | laugh | goof off |
The following table is a little more complex. It demonstrates some of the formatting possiblities using the HTML tags ROWSPAN= and COLSPAN=. Check out the source code.
Instrument Cartage | Home | |||
---|---|---|---|---|
Concert | Studio | |||
Guitars | Acoustic | Ramierez | Martin | Gibson |
Electric | Gibson 335 | Stratacaster | Telecaster | |
Guitar Amplifiers | Marshall | Boogie | Twin Reverb |
Here is a table without borders. It also uses the table tags in an interesting way creating 3 long ROWS (which appear as columns) that have a WIDTH attribute of 33% and a long list of table data with line breaks encoded (the line breaks are the key to making the row appear as a column). Check out the source code. It is borrowed from the VideoMedia Web site (real link). At that site the table is linked to a list of their dealers from the selected country. This example table doesn't not have links.
I like to use tables as little frames around text (not the HTML <frame> tag!) giving the effect of a little picture frame using the following code:
<table border="5" cellspacing="5"><tr>
<td>put in a small graphic here
<td>Put Your Title Here
<td>maybe another small graphic here</tr>
</table>
It looks like this:
THE WORLD WIDE WEB IS REALLY FUN |
are getting very |
|
HypnoTV |
check out the code.
Some people like to use tables without borders to create multi-column text similar to magazine or newpaper format. With the additional use of the <blockquote> tag within the table cells it looks like the example below. Check out the source code.
This text here is shown in one column on the left while over on the right there is room for another column of text. In fact the font size can be different if you choose by using either the <font size=X> tag or simply using a <hX> heading tag. Of course you would put in some number instead of the X's. The <blockquote> tag is used to make the indentation that you see. Without that tag you would have less space between the columns, maybe that will suit your needs. Anyway, if you need columns of text, this is fairly easy way of achieving that kind of page layout. |
|
|
Here are all of the tags and attributes used for tables
<table | border=? (in pixels) | cellspacing=? (in pixels) | cellpadding=? (in pixels) | width=? (in pixels or percentage) | > | put the tr, td, th, or caption tags here. | </table> | ||||
<tr | align=? left | right | center | middle | bottom | valign=? top | bottom | middle | > | put td and th tags here. | </tr> | ||||||
<td | border=? (in pixels) | align=? left | right | center | middle | bottom | valign=? top | bottom | middle | nowrap | colspan=? | rowspan=? | width=? (in pixels or percentage) | bgcolor="#rrggbb" (rr=red, gg=green, bb=blue HEX values) | > | Display Text | </td> (closing tag is optional) |
<th | border=? (in pixels) | align=? left | right | center | middle | bottom | valign=? top | bottom | middle | nowrap | colspan=? | rowspan=? | width=? (in pixels or percentage) | bgcolor="#rrggbb" (rr=red, gg=green, bb=blue HEX values) | > | Display Header | </th> (closing tag is optional) |
This next little table contains all of the tags and attributes. It is a good source to copy and paste from then modify for your specific needs.
ReplaceThisHeader | ReplaceThisHeader |
---|---|
ReplaceThisText | ReplaceThisText |
This is an animated Gif file from Beach Software's Web Ware CD-ROM. It's only 17K
This is another from the same CD-ROM.
This one is only 9K. These are a few of my favorite things.
These animated gifs are kind of cute.
Here are a couple animations of music scales.
If you want to learn more about animated gifs check out these web sites.
http://member.aol.com/royalef/gifanim.htmThis is the image tag with all of it's attributes. This code assumes that the file named "imageName.gif" is located in a folder named "GIF_FIles". The attributes of border, width, height, hspace and vspace require a number of pixels.
<IMG SRC="GIF_Files/imageName.gif" ALT="an image" ALIGN=top|bottom|middle|left|right BORDER=? WIDTH=? HEIGHT=? HSPACE=? VSPACE=? LOWSRC=?>
The keyboard image below uses the img tag complete with all attributes ready for copy/paste use. Check out the source code.
Using Images in links
i.e. <A HREF="http://www.somewhere.com"><IMG SRC="Image_Filename.gif"></A>
You should of course, provide the reader with info regarding the link destination if the image doesn't.The button below is used with a link to the Page Index. Check out the source code.
<--Click here to return to the Page Index
One of these days when I learn more about CGI scripts and/or JAVA and JAVA script and other stuff, I'll be able to deal with Image Maps. Not yet.
Sound Files on the Web are usually Digital Audio Files or MIDI files.
The Digital Audio Files can be in several formats making compatibility issues a real concern. The two most popular formats are aiff (Mac) and wav (PC) files. You browser will need to use a "helper" or Netscape plug-in such as Quicktime's MoviePlayer. Another program (plug-in) that will work is SoundApp. Once you have the required software, you can click on these links. The sound files will load automatically or you may be prompted to locate the helper program. After the file has loaded you can use the sound control to replay the file without reloading the file. In other words, don't click on the link again, simply play the file using the rewind and play buttons, if available.
MIDI files contain instructions that synthesizers can use to play musical sounds. They required a synthesizer of some kind. The possible sound sources for the Web environment include SoundBlaster, Quicktime, and MIDPLUG by Yamaha. The Files on this page were prepared using MIDPLUG which is available from the Yamaha XG Site (real link). You also can get there via the Plug-in section of Netscape's Web site.
MIDI files can be loaded using the HTML tag HREF= . When you open the MIDI file this way a separate document will open and display the MIDPLUG controls. You can access tempo and all other controls by clicking on the MIDPLUG nametag to reveal a pull-down menu. The Play, Stop, Pause and Volume controls are available also as buttons on the MIDPLUG panel.
Air - J.S. Bach MIDI fileYou can also "Embed" MIDI files into regular Web pages and have the MIDI file open automatically if you use the following HTML code:
<EMBED SRC="MIDI_Filename.mid" WIDTH=150 HEIGHT=40 PANEL=0 AUTOSTART=TRUE REPEAT=TRUE>.
The page will play the File repeatly if REPEAT is set to TRUE, a setting of FALSE will result in a single playing of the MIDI file. Alternate size attributes are WIDTH=100 HEIGHT=30 and WIDTH=40 HEIGHT=35. Setting the HEIGHT=0 will result in hiding the MIDPLUG panel. The file will still play (if AUTOSTART=TRUE) but no other controls will be available. If you have a lot of text at your site you can provide some appropriate background "reading music".
The Frame example link takes you to a frame layout that splits the window into two frames and loads two different documents. The left frame contains an index of the contents that are displayed in the right frame. It is a common frame design. Since I use a laptop computer with a small screen I don't use frames very often but it's a very useful layout for a large screen computer.
The frame environment is created by a framesetter document. Below is the source code for the frameset document. It isn't a document that you can see, it is used to define a name for the each frame and contain the address of the document that should be loaded into the frame. This document divides the window into two frames, one on the left is 26% of the screen width. The two frames are named "Index" and "Text". If someone is using some ancient browser that can't deal with frames there is a substitute document that can be displayed using the NOFRAME tag.
--------------- begin the frameset document -------------------- <!--DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN"--> <HTML> <HEAD> <TITLE>Frames 'R Us</TITLE> </HEAD><FRAMESET COLS="26%, *"> <!-- addition frameset parameters: rows=?,?,? border=? (border width) frameborder="yes|no" bordercolor="#rrggbb" --> <FRAME SRC="Frame_index.html" name="Index"> <FRAME SRC="Frame_text.html" name="Text"> <!-- addition frame parameters: marginwidth=? marginheight=? scrolling="yes|no" noresize frameborder=yes|no" bordercolor="#rrggbb" --> <NOFRAME> <FRAME SRC="Html_text.html"> </NOFRAME> </FRAMESET> </HTML> ----------------------- end of the frameset document ------------------
And then there is BLINK.
You can use the ADDRESS tag to let people know how to get in touch.
The form is as follows: <ADDRESS> Your E-mail, Fax, etc. goes here </ADDRESS> The ADDRESS TAG looks like this, it displays in italics.Personally, I think it can make one's address more difficult to read, sometimes I don't use it. Instead I use it for copyright notices, no one reads those anyway.