In Association with Amazon.in   Flipkart

Saturday, November 24, 2012

HTML Image Tag

Images :
<img src=”path of file”>
If both html file and image in the same folder then no need to give path


<img src=”path of file” alt=”This is an Image”>
If the Browser can not display Image with any reasons then Alternative text will display.


Example
<html>
<body>
<img src="sunset.jpg" alt="Sunset Image"  border="10" width=250 height=300 align=right>
</body>
</html>
Setting the height adjusts width and vice-versa. Pick the Image from Different Folder In your Folder


Example
<html>
<body>
<img src="Images/roses.jpg" alt="Rose Flower" border="10">
</body>
</html>
Absolute Path  :  Path According to Drivers
Relative Path   :   Path According to Reference File


Example
Pick the Image from Different Folder which is out of your Folder
<html>
<body>
<img src="../roses.jpg" alt=" Rose Flower "  border="10">
</body>
</html>

See The Following Images are by using <img> Tag:





1 comment:

  1. I must say that I find the ad service you are using to be a usability flaw. I almost didn't reach this page. As for your content, I think that you should write more stuff like HTML image tag tutorial.

    ReplyDelete


Related Posts Plugin for WordPress, Blogger...