HTML图像标签<img>,没有闭合标签
<img src="" alt="" width="" height="">
常用属性:
src 图像的地址
alt 若浏览器无法正常显示图像,则会用此文本代替
其他图像标签:
<map>定义图像地图 <area>图像地图中可点击的位置
<img src="https://www.runoob.com/try/demo_source/planets.gif" alt="Planets" width="145" height="126" usemap="#planetmap" />
<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>
下图中部分区域可点击