In order to display an image on a webpage, we need to transfer image to our webspace on icarus account. There are tools available to transfer a file from a computer to our icarus account. One such tool is WS-FTP. The tool is available in the Internet Tools window (it is on the desktop on ACCC windows PCs, once you log in).
Here are the simple steps you can follow to transfer an image from the PC you are working on, to public_html directory in your icarus account:
The following solution assumes that the image file already exists in icarus account. The Grading Criteria is at the bottom of the page.
HTML code | How it looks on webpage |
---|---|
<html> <head> <title>CS 100 Lab 10</title> </head> <body> <h1 align="center">CS 100 Lab 10</h1> <ul> <li>Name: Instructor CS 100</li> <li>NetId: i100</li> <li>Time of Lab: MF 8am - 10am</li> </ul> <p> This is the original image, it is also an image link: </p> <a href="http://www.lego.com/legoland/california/"> <img src="lab10.jpg"> </a> <p> This is the modified image, width is changed to 300 pixels: </p> <img src="lab10.jpg" width=300> <p> Distorted image with width of 300 pixels, and height of 400 pixels: </p> <img src="lab10.jpg" width=300 height=400> <p> The image was taken from <a href="http://www.cs.uic.edu/~i100/images/legos/index.html"> CS 100 Image Page</a> </p> </body> </html> |
CS 100 Lab 10
This is the original image, it is also an image link: This is the modified image, width is changed to 300 pixels: Distorted image with width of 300 pixels, and height of 400 pixels: The image was taken from CS 100 Image Page. |
If webpage is not accessible, no credit will be given. If you have any questions, please contact Devang.