Getting Started with HTML - How to Build a Home on the Web

by: Marty Beall

Okay, I have a picture of myself and I want the whole world to know who I am, how do I let them access my picture? Here's where the IMG tag comes into effect, you use the IMG tag with the SRC attribute. Remember: Most browsers only support the GIF and JPEG format.

So, all together you have:
-------------------------------------- New Document-------------------------------------------------

<HTML>
<HEAD>
<TITLE> This is Where your Title Goes </TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000AA" VLINK="#0000AA" ALINK="#FF0000">
<H1>The is My Headline</H1>
<HR SIZE="4" WIDTH="75%">
<IMG SRC="http://www.domain.com/path/to/my/picture">
-------------------------------------- New Document-------------------------------------------------

Is there a way I can add a border around my picture? Yes, just add the BORDER attribute. The BORDER attribute goes inside of the IMG tag.

So, you get something like:
-------------------------------------- New Document-------------------------------------------------

<HTML>
<HEAD>
<TITLE> This is Where your Title Goes </TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000AA" VLINK="#0000AA" ALINK="#FF0000">
<H1>The is My Headline</H1>
<HR SIZE="4" WIDTH="75%">
<IMG SRC="http://www.domain.com/path/to/my/picture" BORDER="2">
-------------------------------------- New Document-------------------------------------------------

Note: BORDER can be any number you want.

1. Done?
2. Need help?

Baltimore MD : Technology : Getting Started with HTML : How to Build a Home on the Web