HTML IMG Tag
Jump to navigation
Jump to search
An HTML IMG Tag is an HTML tag that positions an image in an HTML page.
- …
- Example(s):
<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;">
- Counter-Example(s):
- See: Programming Language Primitive.
References
2015
- http://www.w3schools.com/tags/tag_img.asp
- The <img> tag defines an image in an HTML page. The <img> tag has two required attributes: src and alt.
- 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>