HTML <area> คุณสมบัติhreflang
ตัวอย่าง
ใช้แอตทริบิวต์ hreflang เพื่อระบุภาษาของ URL เป้าหมายสำหรับแต่ละพื้นที่ในแผนผังรูปภาพ:
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun"
href="sun.htm" hreflang="en">
</map>
ความหมายและการใช้งาน
แอตทริบิวต์hreflang
ระบุภาษาของ URL เป้าหมายในพื้นที่
คุณลักษณะนี้จะใช้เฉพาะเมื่อ มีการ href
ตั้งค่าแอตทริบิวต์
หมายเหตุ:คุณลักษณะนี้เป็นเพียงคำแนะนำเท่านั้น
รองรับเบราว์เซอร์
Attribute | |||||
---|---|---|---|---|---|
hreflang | Yes | Yes | Yes | Yes | Yes |
ไวยากรณ์
<area hreflang="language_code">
ค่าแอตทริบิวต์
Value | Description |
---|---|
language_code | A two-letter language code that specifies the language of the linked document. To view all available language codes, go to our Language code reference. |
❮ แท็ก HTML <พื้นที่>