您的位置:寻梦网首页编程乐园HTML园地HTML实用教程
HTML实用教程
作者:佚名 来源:梦之都(www.dreamdu.com)

HTML area 标签

area 标签 -- 定义图像点击区域
  • area标签是单独出现的,<area />
  • area标签必须使用在map标签中,而且必须配合img标签使用。
  • 属性
    • Common -- 一般属性
    • accesskey -- 链接的快捷键访问方式
    • alt -- 图像的提示文字
    • coords -- 定义可点击区域图形的坐标
    • href -- HTML链接源的URL
    • nohref -- 图像点击排除的区域,当不使用href时应使用nohref
    • shape -- 可点击区域的形状
    • tabindex -- 使用"Tab"键的遍历顺序
    • target -- 链接目标
  • area是client-side image map area的意思,区域

area标签示例

 
<img src="http://www.dreamdu.com/images/html_table.gif" usemap="#Map" />
<map name="Map" id="Map">
    <area shape="rect" coords="35,29,135,99" href="#" />
    <area shape="circle" coords="243,78,44" href="#" />
    <area shape="poly" coords="120,137,195,154,135,207" href="#" />
</map>

HTML area 标签

延伸阅读

参考

HTML视频教程