Introduction to HTML

Next, let's add an image on our web page. You can insert an image by using this tag <IMG SRC="....the name and the location of your image ...."> Please see the example below.


<HTML>
<HEAD>
<TITLE>My first page</TITLE>
</HEAD>
<BODY>
<H1 ALIGN="CENTER">HELLO</H1>
<P ALIGN="LEFT">This text is aligned left.
<P ALIGN="RIGHT">This text is aligned right.

<P ALIGN="CENTER"><IMG SRC="images/logo.gif">
</BODY>
</HTML>

HELLO

This text is aligned "left"

This text is aligned "right"

 

<IMG SRC="tipsbanner.gif"> tells the location of your graphic file. If it isn't in the same directory of your web document (the one that we are working on), you have to specify it differently. For example, calling it from your hard drive <IMG SRC="c:\your_image_directory\image.gif"> calling it from the location on the WWW <IMG SRC="http://www.your_name.com/image.gif">

You might have a question by now. How can I get an image? There are many ways: use a scanned image from a scanner, download free clipart from other web sites, create it yourself, etc. To use scanned images, you have to buy a scanner. Then, you can scan your photographs. To download a free clipart, visit one of the web's hundreds of free clip art sites. As I said earlier, we will create a web page that has a link to another place, and a visitor can send an email to you. We can make these possible by using an anchor tag <A>. See the example below.

<HTML>
<HEAD>
<TITLE>My first page</TITLE>
</HEAD>
<BODY>
<H1 ALIGN="CENTER">HELLO</H1>
<P ALIGN="LEFT">This text is aligned left.
<P ALIGN=&qu

©2008 WOWhostingCatalog.com. All Right Reserved. Privacy