:: HOME » HTML » How To Use Images
 
How To Use Images

To be able to use an image in our WEB page, we need to use <img> tag. We don’t need to close <img> tag. With src="" (source), we define the location of the image we want to show.

 

<img src="logo.jpg">

 

If you want to determine the width and height of the image you need to use width="" and height="" attributes.  If you don’t use these attributes, HTML gets original image height and width as a default. If you don’t use just one of these two, HTML automatically resize image based on you defined width or height.

 

For example: suppose that we have image logo.jpg with 200*200 dimension.

 

<img src="logo.jpg">  here width is 200 and height is 200 because we don’t define them

<img src="logo.jpg"  width="100"> here height is 100 because we define width 100 and automatically HTML resize the image view.

 

You can use border="" attribute to determine image border.

 

<img src="logo.jpg" border="5"

 

When you move your mouse over image, if you want to see the comment of image you need to use alt="" attribute and also I suggest to use it for every image.

 

<img src="logo.jpg" alt="This is my logo">


HTML How To Use Images HTML How To Use Images HTML How To Use Images
HTML How To Use Images
NEW QUESTION
 
Your E-Mail Address
»
Your e-mail will never be shown!  
   
 
Question
»
Please type your question and please use [CODE] tag for your codes!  
  Add CODE Quote BOLD ITALIC Underline Align Left Align Center Align Right Add Line  
   
 
Human Check
»
Enter human check code below!  
   
 
       
 
* Your Question will be answered as soon as possible, probably within 24 hours!
HTML How To Use Images HTML How To Use Images HTML How To Use Images
HTML How To Use Images
 
Quaware Internet Solutions And Consulting - SEO Search Engine Optimization, Website development and design, eCommerce, Online Payment Systems, Shopping Cart, Affiliates Website Designer, Search Engine Optimization Expert, Ajax Developer,Developed And Designed By Mumin Celik With Using PHP, MySQL, CSS, JavaScript, Ajax And Search Engine Optimizer Sinema, Film, Ask, Tekgul, Mutluluk