ข้อมูลอ้างอิงHTML

HTML โดยตัวอักษร HTML ตามหมวดหมู่ รองรับ HTML Browser แอตทริบิวต์ HTML HTML Global Attributes เหตุการณ์ HTML HTML สี HTML Canvas HTML เสียง/วิดีโอ ชุดอักขระ HTML HTML Doctypes การเข้ารหัส URL HTML รหัสภาษา HTML รหัสประเทศ HTML ข้อความ HTTP วิธี HTTP ตัวแปลง PX เป็น EM แป้นพิมพ์ลัด


HTML <area> รูปร่างคุณสมบัติ

❮ แท็ก HTML <พื้นที่>

ตัวอย่าง

ใช้แอตทริบิวต์รูปร่างเพื่อระบุรูปร่างของแต่ละพื้นที่ในแผนผังรูปภาพ:

<map name="planetmap">
<area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun">
<area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury">
<area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus">
</map>

ความหมายและการใช้งาน

แอตทริบิวต์shapeระบุรูปร่างของพื้นที่

แอตทริบิวต์shapeนี้ใช้ร่วมกับcoordsแอตทริบิวต์เพื่อระบุขนาด รูปร่าง และตำแหน่งของพื้นที่


รองรับเบราว์เซอร์

Attribute
shape Yes Yes Yes Yes Yes

ไวยากรณ์

<area shape="default|rect|circle|poly">

ค่าแอตทริบิวต์

Value Description
default Specifies the entire region
rect Defines a rectangular region
circle Defines a circular region
poly Defines a polygonal region

❮ แท็ก HTML <พื้นที่>