Wednesday, September 9, 2015

HTML adding Images

adding images in your website its not that complicated  <img src="myphoto.jpg" alt="pictures">

 image  are defined as <img>  tag

 (src)- attribute is for the source of your photo if you save the photo with the same folder where did you
 save your html file you can directly put in the file name of your photo like being  shown above.
 but if you separate them you must also include the folders where did you put the photos before the file name  like

<img src="images/myphoto.jpg" alt="pictures">   images is the folder name where the photos is being stored.

(alt)-attribute  is being performed when the photos is not being shown/ or       the html can't find the file. like this image being shown below you       can see the word "pictures" because html cant find the photo
   
(width) & (height) -attributes technically this attributes is used to resize photos that you wanted to.

 <img src="w3schools.jpg" alt="W3Schools.com" width="104"height="142">

0 comments:

Post a Comment