Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Put image on your site

To put image in a website you must use <IMG SRC="File name">. Remember if your picture not in the same place with your HTML file you must add path before file name in SRC value like this. <IMG SRC="path/image name">.
example :

<HTML>
<HEAD><TITLE>My First Webpage</TITLE></HEAD>
<BODY>
<IMG SRC="mypicture.jpg">
</BODY>
</HTML>

The attribute in IMG tag are border, alt, width and height, align, vspace and hspace.
Border used to give border around of picture, the value in a pixel.
example : <IMG SRC="mypicture.jpg" BORDER="3">
ALT used to give the alternative text on image.
example : <IMG SRC="mypicture.jpg" ALT="This is My Picture">
Width and Height used to arangge the picture wide and picture hight.
example : <IMG SRC="mypicture.jpg" WIDTH="150" HEIGHT="200">
Align used to arangge aligment of picture. The value is left, right, or center.
example : <IMG SRC="mypicture.jpg" ALIGN="left">
Vspace and Hpace used to give line spacing between picture and text horisontal and vertically.
example : <IMG SRC="mypicture.jpg" HSPACE="3" VSPACE="5">


This post first appeared on Web Programming Tutorial, please read the originial post: here

Share the post

Put image on your site

×

Subscribe to Web Programming Tutorial

Get updates delivered right to your inbox!

Thank you for your subscription

×