More Chapter 5 stuff
Adding images to your web site.
Types of image formats
So, what format is the best?
Image file sizes and download time .
Suppose you had a 600 pixel x 300 pixel image or 180,000 pixels. If we used a file format with 8 bits per pixel, we would have to download a
1,440,000 bit file. Point is, the more images the slower the download time!
Image tag
<img> </img> OR use
<img/>
Important attributes
<img src="sensq.jpg" alt="picture of SENSQ"/>
Sizing the image.
height and width attributes
picture distortion
Pixels vs Percentage
Alignments - There are several different vertical and horizontal alignments available for images. Please see pages 150-152 in your book.
Borders are also available using the "border" attrbutes.
Using images in the internet???
Images as links
You can use images as links much the same way you use text!
<a href="http://www.cs.pitt.edu"> <img src="sensq.jpg" alt="CS building link" height="150"/></a>
NOW FOR SOME CHAPTER 4 stuff.
How do I love my CS134 class......Let me count the ways!
But you know, I have some points that would make it just a little better!
Yes, you guessed it. LISTS!!
There are Three basic list types
Ordered list
Yes, new tags.
<ol> </ol> to declare the list
<li> </li> to define the list items
example - this will provide a numerical list (list can also be Alpha). However, both list are increasing.
<ol>
<li> list item #1 </li>
<li> list item #2 </li>
<li> list item #2 </li>
</ol>
<ul> </ul> to declare the list
<li> </li> to define the list items
example - this will provide a bulleted list.
<ul>
<li> list item #1 </li>
<li> list item #2 </li>
<li> list item #2 </li>
</ul>
These list can be nested so PLEASE make use of an indenting style when coding!!