Get started on this project as soon as possible to allow yourself time to troubleshoot your pages!
You may complete the instructions given in this project today, but do not submit this project until you have received your grade report for the previous project. Make all corrections from previous grade reports before submitting this project. Not making corrections will result in a 3-point reduction in your score for this project.
To be graded:
Links to important resources for this project:
The resource page at W3Schools for the <img> tag in XHTML coding:
http://www.w3schools.com/tags/tag_img.asp
The web-safe 216 cross-platform color chart at W3Schools
http://www.w3schools.com/html/html_colors.asp
The colornames chart at W3Schools
http://www.w3schools.com/html/html_colornames.asp
Clip art gallery for technology images at DiscoverySchools.com
http://school.discovery.com/clipart/category/tech1.html
Visit W3Schools for information about images
http://www.w3schools.com
From the home page, follow the links to the pages for "Learn XHTML," then "XHTML Tag List," then <img />
Use the links that you see on the <img /> page to explore topics about adding images to your pages.
Downloading images to use in your web pages:
Graphics that you use on a web-page should have one of the following extensions: gif, jpg, jpeg, or png.
Images will slow down the loading of your page. Always check the file size, and dimensions of images before using them in a web page. Too many images, or images that are too large, will annoy viewers who don't like waiting for a page to download, no matter how great the pictures are!
When you locate an image that is the right format (.jpg, .gif, or .png) and an appropriate size:
Tips when selecting images for use on web pages:
When viewing images on the web, right-click and choose "Properties" from the menu to get a pop-up window that displays the size and dimensions of an image. The size may be given in bytes or kilobytes (K), which represents "thousands" of bytes. An image that is 9000 bytes is approximately the same size as a 9K image. If dimensions aren't labeled, width is usually the first measurement given and height is the second. Images will load faster if you include the information for the width and height as attributes with the <img /> tag.
Visit the home page for "Learn XHTML" at the W3Schools website. Scroll down the page until you see a picture of two men in the "Get Your Diploma!" section of the page. Right-click on this image. The pop-up menu will give you this valuable information:
The image tag is an empty tag. All of the code needed to display the image is in one code. There is no text to surround on the page and therefore no need for a separate ending tag. To be backwards compatible with older browsers, include a space and an ending slash before the right bracket of the image tag.
All images should include the alt attribute. The value given for the alt attribute will display:
Well-designed image tags will include this format:
<img src="filename.ext" alt="description of picture" width="###" height="###" />
name of the tag: img
attributes with values:
So, suppose you have an image of campus named parkland.jpg to display on your page. If you store the picture in the same location as your web page, the image tag will look like:
<img src="parkland.jpg" alt="Parkland College" width="200" height="50" />
If you download the picture described in the "Get Your Diploma!" area of the w3schools web page to use on your page, the image tag will be:
<img src="diploma.jpg" alt="Diploma" width="117" height="128" />
You may want to nest the image tag inside a paragraph tag. This will make the image display on a new line and help control the alignment of the image on the page.
<p>
<img src="diploma.jpg" alt="Diploma" width="117" height="128" />
</p>
If you want to center an image on the page, you can use the align attribute with the paragraph to do that:
<p align="center" >
<img src="diploma.jpg" alt="Diploma" width="117" height="128" />
</p>
When using images from the Internet on your web pages, it is important to locate and print out the copyright information or "terms of use" for the images. If you cannot find copyright information for clip art, DON'T USE IT! Often websites will label their graphics as "free," but only for non-commercial pages or under certain conditions. Many graphics pages require that you mention where you got the graphics or give a link back to their page. Be sure you know what the terms of use are for the graphics that you choose. You can be sued for misuse of "free graphics." The Discoveryschool website used in this project for images has a clearly stated policy about the use of the images they offer. Notice that this website offers clip art images for non-profit websites, but says the images cannot be changed in any way and credit must be given to Discoveryschool.com.
http://school.discovery.com/clipart/copyright.html
Some pointers when using images in your web pages:
Give your image files short, descriptive names that are all lowercase with no spaces.
When you upload your html files to Geocities, you ALSO have to upload the image files. They are not embedded in your page. They are stored as separate files! When you display a page in the browser, each time the browser finds an <img /> tag on the page, it looks for the file that represents the image. When you upload pages that have images, you will need to upload the html file and all of the image files that you included in the code of your page. If your pictures appear when you view your page from your storage device but do NOT appear after you upload your pages to Geocities, go through the troubleshooting steps given below. The most common reason image files do not appear when you view your pages in the browser is because the image files were not uploaded! The second most common reason is the filename used to store the file does not match exactly what is used in the src attribute for the <img> tag.
If your images do not display, check:
What if your images don't display on your page after you have uploaded to Geocities:
Read web page about web-safe colors:
http://www.lynda.com/hex.html
Visit the web-safe color chart at W3Schools :
(You can find this page by going to the W3Schools home page, the "Learn HTML" page. There you will find a link to "HTML Colors.")
Also visit the chart for color names (many of these are NOT part of the web-safe palette)
The link for this page is on the "Learn HTML" page. Look for the link to "HTML Colornames"
The need to use "web-safe" colors is controversial since modern computers typically will be able to handle any color. However, as a student of web-design, you should know what the "web-safe color palette" is and how to use it. Visiting the online resource given above (lynda.com) will give you more information about this important concept!
You need to be able to distinguish between the different charts available at W3Schools.
One chart given to use for the project has a chart of 216 cross-platform color codes. These are considered to be the "web-safe" group. The "colornames" chart does not include web-safe colors.
Example of using a hex number code to add a background color to a page:
<body bgcolor="#ffffff">
Reminder: The bgcolor attribute and color code are added to the existing body tag of your page. You can only have one <body> tag per document in a web page.
After visiting the W3Schools website and visiting pages to give information about the <img> tag and using colors, complete these questions:
Short answer questions:
You will be using the files that you have created in previous projects. Correct any errors that were listed in previous grade reports. Errors not corrected from previous projects will result in an automatic 3-point deduction for your score of this project.
To find images for this project, visit the Discovery School's Clip Art Gallery of Technology images:
http://school.discovery.com/clipart/category/tech1.html
The images in this clipart gallery are available in two sizes. To see the large size of the image, click on it to enlarge it. These images will look best on your web pages in the smaller version of the file. Smaller files download faster too! Return to the smaller file version before saving the file to use in your web page. When you right-click to save the image, be sure that you are using the smaller version of the file. Look through the gallery and select two images to be used on your web pages. Use one image on each of your web pages. For each image file:
Use Notepad to open the files that you used in the last project. Make any corrections that were given in your grade reports for previous projects. Also make the following changes:
To test your page:
If your code does not work properly, you can edit the code in Notepad and save the file again! You will have to open Notepad to edit the file. With Notepad open:
Save the changes and upload the revised web pages and the image files to Geocities.
Do not submit your files for this project until you
have received your grade report for the previous project.
Make any necessary corrections that are noted on previous grade reports.
Upload the html files and the image files you used to
Geocities.
Send the answers to the short answer questions and the URL for your hometown.html page to me in an email to the instructor
Your URL should be something like:
http://www.geocities.com/yourlogin/hometown.html
Send a copy of the email to yourself to test your URL to be sure it works and to see if your image files are displaying when you view your pages in the browser AFTER you have uploaded the files to Geocities. If your pictures appear when you view your page from your storage device but do NOT appear after you upload your pages to Geocities, go through the troubleshooting steps given in the project instructions. The most common reason image files do not appear when you view your pages in the browser is because the image files were not uploaded!
You will receive a confirmation that I received the project. It is your responsibility to watch for this confirmation. If you do not hear from me within 24 hours, resubmit your email to me.