![]() ![]() |
||||||||
<Home> | | <CSS Tutorials> | <Color Charts> | <Practice Area> |
||||||||
Basic Exercises · Introduction · ex. 1 - Make a page · ex. 2 - Head & Body · ex. 3 - Attributes · ex. 4 - Text · ex. 5 - Colors · ex. 6 - Hyperlinks · ex. 7 - Anchors · ex. 8 - Graphics Join our mailing list to receive tips and tricks. |
HTML TUTORIALS: Ex. 8 - Graphics EXERCISE 8: ADDING GRAPHICS: You've mastered text and links, yet web pages can display so much more. A picture is worth a thousand paragraph tags, I always say. I'd like to show you how you can add them to your pages. From this point on, I want you to be aware that people sometimes refer to pictures on the internet as graphics, logos, and icons. Get used to the lingo. All of them refer to pictures. SECTION A: TYPES OF GRAPHICS YOU CAN USE ON WEB PAGES: The 3 most commonly used graphic formats are:
SECTION B: USING THE GRAPHIC TAG: When you use images in web pages, realize that the graphics don't become a part of the html file. You are simply telling the HTML file where to get the images from. In other words, you are just linking to the graphics. That is how they show up on the page. So, to make your life easier, you should place your images in the same place as your web pages so that you can concentrate on graphics and not be bothered by the linking aspect. Here is the image tag: <img src="imagename.gif"> What does it mean? It is explained below:
As you can see, adding images to a page can liven it up greatly. SECTION C: HOW YOU GET GRAPHICS: There are a number of ways that you can get graphics. They are:
To copy graphics from web pages, you do the following:
SECTION D: USING GRAPHICS AS LINKS: We already know that to make a text link, we use the following format: <a href="somepage.html">text</a> The text is what you click on to go to another page. Well, we can put an image tag inside of the A tags and the image will act as a link as well. The format would be: <a href="somepage.html"><img src="someimage.gif"></a> <!---JUST COPY THE CODING BELOW (EDIT/COPY) SINCE ITS SO LONG. STUDY THE CODING FIRST THOUGH---> <html> <head> <title> Graphics </title> </head> <body background="ex8_background.gif"> This page has a background image that repeats until the page is filled. <br><br> Here is another image. <br><br> <img src="myfirstimage.gif" border="0"> This is my first image.<br> This is my first image.<br> This is my first image.<br> This is my first image.<br><br> <a href="html_exercise8links.html"><img src="myfirstimage.gif" border="1"></a> This image is a link, click on it.<br> </body> </html> ADDITIONAL ASSIGNMENT: I'd like for you to do the following steps:
!!!!!REQUIRED ASSIGNMENT!!!!!: I want to provide you with the steps to create a web page using a text editor instead of this online tutorial. Why? Because, eventually you will need to know how to use an editor program so that you can save, share, and post your files. I am going to provide you with the necessary steps to create the same blank HTML page that we did in exercise 1 using an editor. Click on the following link, print out the instructions, close the instructions window, and do the tutorial either now or later down the road when you feel up to it. Get the Text Editor Instructions Now END OF EX. 8 - GRAPHICS DONE WITH THE BASICS! CONGRATULATIONS! <-- Back to Exercise 7: Anchor Hyperlinks |
|||||||
Home | HTML Tutorials | Color Charts | Practice Area Copyright 2003 FromThePen.com All Rights Reserved |
||||||||