HTML BASICS:HTML Images

HTML Images Syntax

<img src> tag is used for inserting images in web pages. img stands for image and src for source. src indicate the source of the image.It doesn't have any closing tags. <img> is an empty tag.

following code indicate the format for including images to our pages.

<img src="url" alt="some_text"> 



If there is any mistake in source the image will not appears.





Image Size - Width And Height

You can use the style attribute to specify the width and height of an image.The values are specified in pixel.



Jesna N Scaria

Articles : 32

I am a Software Developer at Leedhar Technologies
India India