Tables, Images, and Color

Assignment 5 - CIS89a


In this assignment, we are to create a Web page that demonstrates our knowledge of tables, images, and color as used in HTML. Again, this page may seem alittle odd, but this is a class assignment and therefore just a domonstration of various techniques. You may want to have a look at the lecture notes about tables or about Images and color or the actual assignment.


[ HTML Color Table ] [ External Images ] [ Images and Text ]



HTML Color Table

The following is a table of the standard HTML colors. You will notice that for all of these colors, coding with the hex value has the same result as coding with the color name ( At least in Netscape ). For your bookmarking pleasure, I have supplied another copy of this table, along with a couple of others, on a separate page. Also note the other page is not on the server at school, so it will exist long after the quarter is over.

Standard HTML Colors
Color Name Color Hex value Color Sample
Using Hex Value Using Name
Aqua #00FFFF    
Gray #808080    
Navy #000080    
Silver #C0C0C0    
Black #000000    
Green #008000    
Olive #808000    
Teal #008080    
Blue #0000FF    
Lime #00FF00    
Purple #800080    
Yellow #FFFF00    
Fuchsia #FF00FF    
Maroon #800000    
Red #FF0000    
White #FFFFFF    


Top


External Images

Nifty Fractal Image It is possible to link to an external image in HTML. To demonstrate this, you can click on this text link or click on the image to the right to see the full size image of a nifty fractal that I generated using a program called FRACTINT. You can go to the 'Links' section of my home page for a link to a site where you can download your own copy of this wonderful freeware program. ( Or, go straight from here )





Top


Images and Text


Default Alignment

Here are pictures of Lincoln Lincoln, a ship Ship, and a typewriter Typewriter. These images are all included within a sigle line of text. Note that the default alignment is to the bottom of the line of text. ( not taking into account the descenders, such as 'g' or 'y' )




How Text Wraps

The purpose of this section is to see what happens when the text surrounding the images wraps to the next line in the browser. There has to be enough text between the images to really get a feel for the effect. This picture :   Lincoln is of Abraham Lincoln, our 16th president. He was born in a log cabin Hardin County, Kentuky on February 12, 1809 and was shot by John Wilkes Booth in the Ford Theater in Washington, D.C. on April 14, 1865 - 5 days after General Lee surrendered. He died the next day. This picture :   Ship is of a ship. I don't know what ship it is or where the original picture came from from which this photograph is taken, but it's a nice ship and I like it. This picture :   Typewriter looks like it came from a typing manual of some sort. It shows the 'home position' of the fingers on the keyboard. All three of these pictures came from Public Domain Images, which is a pretty cool source for some public domain images.




Different Alignments Within a Line of Text

Here, the pictures use an 'ALIGN' attribute of 'TOP' Lincoln, 'MIDDLE' Ship, and 'BOTTOM' Typewriter. These images are also included within a single line of text. Note that the text will wrap to be below the lowest point of the previous line.




Text Between Images

Lincoln Typewriter This last section is to show that it is possible to align the images to the left and right margins of the page and put text between them. First the image tags are coded, one with the 'ALIGN' attribute set to 'RIGHT' and the other set to 'LEFT'. Then the text is entered, which will now appear between the two images.



Top



skooter@inow.com


Home

Last Update: May 30, 1999