Monday, 25 June 2012

HOW TO INSERT THE IMAGE IN WEB PAGES

HOW TO INSERT THE IMAGE IN WEB PAGES

<img>...</img>tag is used for insert the image on web pages

some attributes we can use in this <img> tag

1.SRC is used to selcet the path of the image either in c drive nor in d drive

2.ALT is used for when the browser fails to show the image due to several reasons that time we use this ALT attribute for the displayed on the account of its absence.

3.ALIGN is used for arranging the image left/right/middle

4.BORDER is used for set border of the image

5.HEIGHT/WIDTH is used for set the height/width of the image

6.HSPACE/VSPACE is used for set the gaps /whote space between the text and image

7.NAME is used for specify the name of the image

EXAMPLE 

<html>
<head>
<title>Image</title>
<body>
<img src="select the path of the image(example c:\images\wallpaper\abc..jpg)" align="bottom">
</body>
</html>

NOTE:how can we find the path of the image?
just open the image in web browser u can get the path on the address bar(right click on the image open with web browser).

No comments:

Post a Comment