1.3 HTML1 - Images and Hyperlinks

Index Code Tester

OBJECTIVE

DISCUSSION

Images

Hyperlinks

    <a href = "#help">Go to Help</a>
    <a name = "help">Help info here</a>
    

File Navigation

EXERCISES

  1. There are many attributes associated with the <img> tag.  For example, you can align the image and change its size.  Go online and find out what attributes you need to specify to align an image and specify its size.  You can use whatever tutorial you want but you might want to check out the link below.
  2. Create a page that displays the same image in multiple locations and sizes. The page should meet the following requirements:
    1. The image is small and aligned to the left.
    2. The image is large and aligned to the right.
  3. Create a page that demonstrates hyperlinks.  You should first create several folders: folder1, folder2, and folder3.  Folder2 should be in folder1, and folder3 should be in folder2.  Then create a file in folder2 with links to pages in each folder.  You should have a total of 4 files.  You can put anything on the pages.  Keep them simple since the goal is to practice linking files.  Also, add a link to another website.
  4. Add the following to the page (in folder2) that you made in question 3.  Add an image to the bottom of the form.  Then add an anchor tag with a link at the top.  When the user clicks on the link at the top, the user should be directed to the image.
  5. How do you make an image act as a hyperlink?  Demonstrate using your file in question 4.
  6. Go online and determine the pros and cons of the four image types (bmp, jpg, gif, and png) for using on web pages.  Is there a preferred format?
  7. How do you set an image as the backgound of a page?
  8. What does the target attribute of the <a> tag do?  Experiment and demonstrate it.

LINKS AND HELP