欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

HTML 5 <area> 標簽

定義和用法

<area> 標簽定義圖像映射內部的區(qū)域(圖像映射指的是帶有可點擊區(qū)域的圖像)。

area 元素始終嵌套在 <map> 標簽內部。

注釋:<img> 標簽中的 usemap 屬性與 map 元素中的 name 相關聯(lián),以創(chuàng)建圖像與映射之間的關系。

實例

帶有可點擊區(qū)域的圖像映射:

<img src="planets.gif" alt="Planets" usemap ="#planetmap" />

<map id="planetmap">
 <area shape ="rect" coords ="0,0,110,260" href ="sun.htm" alt="Sun" />
 <area shape ="circle" coords ="129,161,10" href ="mercur.htm" alt="Mercury" />
 <area shape ="circle" coords ="180,139,14" href ="venus.htm" alt="Venus" />
</map>

親自試一試

瀏覽器支持

所有主流瀏覽器都支持 <area> 標簽。

HTML 4.01 與 HTML 5 之間的差異

HTML5 提供了一些新屬性,同時不再支持 HTML 4.01 中的某些屬性。

屬性

屬性 描述
alt text 規(guī)定區(qū)域的替代文本。如果使用 href 屬性,則該屬性是必需的。
coords coordinates 規(guī)定區(qū)域的坐標。
href URL 規(guī)定區(qū)域的目標 URL。
hreflang language_code 規(guī)定目標 URL 的語言。
media media query 規(guī)定目標 URL 是為何種媒介/設備優(yōu)化的。默認:all。
nohref nohref HTML 5 中不支持。
rel
  • alternate
  • author
  • bookmark
  • external
  • help
  • license
  • next
  • nofollow
  • noreferrer
  • prefetch
  • prev
  • search
  • sidebar
  • tag
規(guī)定當前文檔與目標 URL 之間的關系。
shape
  • rect
  • rectangle
  • circ
  • circle
  • poly
  • polygon
規(guī)定區(qū)域的形狀。
target
  • _blank
  • _parent
  • _self
  • _top
  • framename
規(guī)定在何處打開目標 URL。
type mime_type 規(guī)定目標 URL 的 MIME 類型。

全局屬性

<area> 標簽支持 HTML 5 中的全局屬性。

事件屬性

<area> 標簽支持 HTML 5 中的事件屬性