|
||||||||||
|
||||||||||
|
||||||||||
|
||||||||||
Saving and incorporating an image from the web Now you're going to add an image to your fledgling HTML effort. To incorporate an image from the web into your own document, you must first save it to your own directory. To try this out (just in case you don't believe us), we must first come up with an image for you to use in your page. Ah, how about the happy computer at the top of this page? Stop complaining, you can find one that you like better later. First you'll use your mouse to place the cursor over the image of the happy hacker at the top of the page. Click on this image and hold down the button (click on the right mouse button if you're using a PC). A menu of commands should drop down before you. Select "Save this Image as . . ." You'll want to make sure that your image file's title is something you can remember. Let's call this image "happycomputer.gif." After changing the "Save As" line, if necessary, save the image to the directory we've created, the one containing your HTML document. Since the image file called "happycomputer.gif" is now stored in the same directory as your HTML document, you'll point the browser to this file (your image source) by adding this line to your document: <img SRC = "happycomputer.gif"> When the page loads in a browser, the image will appear on the page at the spot where you've requested it. Remember: whenever you use text or images that you've found on the web, you must always follow the guidelines for use posted by the web site's creator. If there are no guidelines posted, you must contact the creator and ask for permission to use the material. Anchors are special destination points within a document, allowing you to add links to different parts of the document, such as separate sections, a table of contents, or the top of the page. We'll now add an anchor at the top of the page, along with a link at the bottom to bring us back up to the top of the page:
<A NAME=
"top_of_page"></A> [Creates and names an anchor; we're putting this one at
the top of the page] In addition, we'll add a link to the email address of the page's author (that'll be you, when you stop screwing around and finish your page): <A HREF="mailto:sharis@cia.gov">Shari Saunders</A> When a visitor clicks on this link, her browser will activate her default email application, and open a new, blank message. The message will already be addressed to you, and the user will only have to fill in her message and hit the "send" icon or command. You may also want to add a list of your favorite links, if your page is intended to reflect your hobbies or interests. We'll add just one of our favorite links (check it out--we couldn't make this stuff up if we tried): <A HREF="http://www.cia.gov/cia/ciakids/index.html">Visit the CIA Homepage for Kids!</A> With a little bit of final formatting, here's a sample page we've constructed to illustrate the HTML tags we've been working with in this TUTORIAL.
|
||||||||||
People who've done this tutorial have also done: | ||||||||||
|
||||||||||
Sponsors: | ||||||||||
|
||||||||||
Steps | ||||||||||
|