Sunday, May 19, 2013

How To Use Image Tag in Html

0 comments
Here in this post i will teach you that how to use  image tag in html.With the help of this tag you can insert images to your html web page.You can set the height and width of the image with the help of height and width attributes.You can also use the alternate attribute for displaying the text on the image.

  • For Height and Width of the image <img src="url" width="" height="">
  • For Alternate Text of the image <img src="url" alt="Image Text">

Here URL is the address of your image:

You can find the address of your image by right click of mouse and than open the image in your default browser.You can also find the address of the image which is on the server,just right click and than copy the image url and paste it in the image tag.

This tags are work in the body section only i.e. between <body>and</body> tag only.
The above tag and attributes are use in the example given below.

<html>
<head>
<title>
How To 99
</title>
</head>
<body>
<img src="url" alt="Image Text" width="" height="">
</body>
</html>

Copy the above Code and Paste in your Notepad or Notepad++ and saves the code with .html like abc.html or whatever you want and run the code.

Leave a Reply

 
How To 99 © 2013 How to 99 &

How to Tutorial in 99 Categories