Adding Image to HTML Page


<img src="http://www.anyimagepalace.com/imagestore/anyimage.jpg" alt="Image failed to load">


In HyperText Markup Language (HTML), images are defined with the <img> tag. To display an image on a page, you need to add the src attribute to <img> tag where Src stands for "source". The value of the src attribute should be the URL of the image you want to display on the page. The URL points to the location where the image is stored. An image named "anyimage.jpg" located in the directory "imagestore" on "http://www.anyimagepalace.com" has the URL "http://www.anyimagepalace.com/imagestore/anyimage.jpg". The alt attribute should be used to define an "alternate text" for an image incase images does not display, text will. The value of the alt attribute can be any text. The "alt" attribute tells the reader what he or she is missing on a page if the browser can't load images..