HTM41


BACK

DESCRIPTION

OUTPUT

SOURCE CODE






DESCRIPTION:

      The <IMG> tag, with its attributes, provides Web authors with the control they need to deal with images. It is used to incorporate graphics (typically icons or pictures) into an HTML document. Any image can be added to a web page, provided it is in GIF or JPEG file format. The attributes of the <IMG> tag are SRC, ALT, BORDER, WIDTH, HEIGHT, ALIGN, HSPACE, VSPACE, USEMAP, LONGDESC, and ISMAP.
      A HREF � tells the browser this is going to be a Hyper Link to another document. It indicates the target of the anchor. The document can be another web page, an image file, or an audio MIME/TYPE file for playing sound files. SYNTAX: <A HREF = target_link>text_link</A>


..Back to the top..



OUTPUT:


HTM41. A Web page with image hyperlinks

Web page with an image hyperlink

“A Text aligned middle
This text is place 15 pixels
below the image


..Back to the top..



SOURCE CODE:



<HTML>
<HEAD>
<TITLE>A Web page with image hyperlinks</TITLE>
</HEAD>
<BODY>
<H2><B><CENTER><FONT COLOR = �blue�>
Web page with an image hyperlink
</FONT></CENTER></B></H2>
<!-- include the image-->
<A HREF =www.yahoo.com>
<IMG SRC = �l.jpg� ALT = �A GIF image drawn in Paint� BORDER = 5 ALIGN = center HSPACE = 10 VSPACE = 15 WIDTH = 100 HEIGHT = 125>
</A>
Text aligned middle<BR>
This text is place 15 pixels<BR>
below the image<BR>
</BODY>
</HTML>


..Back to the top..