Welcome Guest! (App Version 3.1)

websitnero logo name

HTML Images


  • <img> tags are used to add images in a web page.
  • <img> tags are Inline.
  • Use src to provide url of an image using <img> tags.

Adding images to HTML

Image tags are used to add images to the web pages. The image can be in any valid format of - .png, .jpg, .svg, .gif, etc. You just need to add the url of image in the src attribute and browser will pick it up. You may also use the optional alt attribute that will show default text if for some reason image is not loaded. You may also use height and width to set the dimensions of the image.


  <img src="hermione.png" width="400" height="300"/>
  <img src="kate.png" width="200" height="250"/>
  <img src="lizzie.png" width="200" height="300"/>


Further Reading

1. <img>: The Image Embed element

WebsiteNero is highly optimized for learning various website developing technlogies. We try our best to add maximum modules and examples to help learn the concepts clearly and vividly. We try to present all content and examples as simple as we can removing any complexity to hurdle easy understanding. We try best provide you with worthful content, but we cannot guarantee full correctness of all the content on this site. While using this website, you agree to have read and accepted all our terms of use and conditions, cookie, and privacy policy. Copyright, 2013-2018 by websitenero.com. All Rights Reserved.