Html tutorial: Image

Image is a graphical representation which is often used in web world to Increase the usability and attractiveness of website.In other words, it is or a kind of photographs.

So question is how to include them in your webpage?
well, thats very easy.
image is included by img tag.
Its syntax is <img src="">

Note: you need to specify the source by hyperlink asmentioned in my previous tutorial on html hyperlink tutorial

For example, <img src="http://www.google.com/logos/bardsley.gif">

Result will be like,


You may want to change the dimenstions of image by including height and width besides img tag
For example,<img src="http://www.google.com/logos/bardsley.gif" width="450px" height="200px">

Result will be like,

Here, px denotes pixel. You can also use % for percent but that may not work in all
browsers or explorer. Thats why i suggest to work in pixel only.

No comments:

Post a Comment

If You Like The Post Or want to Add Something More
then feel free to comment