HTML Image

<img/> is called empty tag in HTML. empty tag can use without tag in pair like other tags.

Syntax
<img src = "image location"
alt = "show text when mouse click on it "
border ="number"
width ="number"
height ="number"
hspace ="number"
vspace ="number"
align ="Left/Right/Center/Top/Bottom"/>

Example
<html>
<head>
<title> Demo Image </title>
</head>
<body>
<Center>
<IMG SRC = “ D :\My Image\mylogo.gif “
Alt = “ My Picture “/>
</Center>
</body>
</html>

*Notice: If we use Path Image to directly(image in folder run HTML), we can open all browser.
Example
<img src=”photo1.jpg” />

- If we use Path Image to indirectly, we can open with Internet Explorer only.
Example
<img src=”D:\My Pictures\photo1.jpg”/>

- To use text left or right image, we use Attribute “Align”
Example
 <p>
<img src="photo1.jpg" align="left">
Text Here
</p>