HTML IMG Tag

From GM-RKB
Jump to navigation Jump to search

An HTML IMG Tag is an HTML tag that positions an image in an HTML page.



References

2015


  • http://www.w3schools.com/html/html_images.asp
    • In HTML, images are defined with the <img> tag. The <img> tag is empty, it contains attributes only, and does not have a closing tag. The src attribute specifies the URL (web address) of the image:
<IMG SRC="url" alt="some_text"> 
<IMG SRC="html5.gif" alt="HTML5 Icon" width="128" height="128">
<IMG SRC="smiley.gif" alt="Smiley face" style="float:right;width:42px;height:42px;">
<IMG SRC="planets.gif" alt="Planets" usemap="#planetmap" style="width:145px;height:126px;">
<map name="planetmap">
 <area shape="rect" coords="0,0,82,126" alt="Sun" href="sun.htm">
 <area shape="circle" coords="90,58,3" alt="Mercury" href="mercur.htm">
 <area shape="circle" coords="124,58,8" alt="Venus" href="venus.htm">
</map>