Smart ways to make money online.

Smart ways to make money online - HTML Tutorial - Multiple Attributes.

 

Let's say you want your graphic to have a border of 2, be 100 x 250 pixels (height x width) and have an alt tag:

<img src="images/apple.gif border="5" alt="This is my apple">

Please note that it does not matter what order you put the attributes in (border, alt, etc.). Just make sure you do not leave out any of the punctuation.

Help, My Graphic Won't Show!

If your graphic does not show up and you receive the "broken image" icon, check the following:

  • Make sure the file is uploaded and is actually in the directory you are pointing to in your HTML code.
  • Check the case of the actual filename. If you saved the file as "APPLE.gif" but typed "apple.gif" in the HTML code then the image will not show. Case does matter.
  • Check your HTML code and make sure you have included all the punctuation.

Creating Image Links

Linking images is helpful if you have buttons or banners on your site and you want the visitor to be taken to another web page or site when they click on the image. To accomplish this, use the following code:

<a href="http://www.the_linked_site.com"> <img src="images/apple.gif">

The first part of the code tells the browser which site to go to and the second part, of course, tells it where the image is located.

 

Lesson # 11 : HTML Tutorial - Creating Tables

HOMEPAGE