HTML အကိုးအကား

အက္ခရာဖြင့် HTML HTML အမျိုးအစားအလိုက် HTML Browser ပံ့ပိုးမှု HTML အရည်အချင်းများ HTML ကမ္ဘာလုံးဆိုင်ရာ အရည်အချင်းများ HTML ပွဲများ HTML အရောင်များ HTML Canvas HTML အသံ/ဗီဒီယို HTML အက္ခရာအစုံများ HTML Doctypes HTML URL ကုဒ် HTML ဘာသာစကားကုဒ်များ HTML နိုင်ငံကုဒ်များ HTTP မက်ဆေ့ခ်ျများ HTTP နည်းလမ်းများ PX မှ EM Converter ကီးဘုတ်ဖြတ်လမ်းများ


HTML <area> href ရည်ညွှန်းချက်

❮ HTML <area> တဂ်

ဥပမာ

ပုံမြေပုံရှိ ဧရိယာတစ်ခုစီအတွက် လင့်ခ်ပစ်မှတ်ကို သတ်မှတ်ရန် href attribute ကိုသုံးပါ-

<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>

အဓိပ္ပါယ်နှင့် အသုံးပြုမှု

ရည်ညွှန်းချက်သည် ဧရိယာအတွက် ဟိုက် hrefပါလင့်ခ်ပစ်မှတ်ကို သတ်မှတ်သည်။

hrefရည်ညွှန်းချက် မရှိပါက ၊ <area>tag သည် ဟိုက်ပါလင့်ခ်မဟုတ်ပါ။


Browser ပံ့ပိုးမှု

Attribute
href Yes Yes Yes Yes Yes

အထားအသို

<area href="URL">

ရည်ညွှန်းတန်ဖိုးများ

Value Description
URL Specifies the hyperlink target for the area.

Possible values:

  • An absolute URL - points to another web site (like href="http://www.example.com/sun.htm")
  • A relative URL - points to a file within a web site (like href="sun.htm")
  • Link to an element with a specified id within the page (like href="#top")
  • Other protocols (like https://, ftp://, mailto:, file:, etc..)
  • A script (like href="javascript:alert('Hello');")

❮ HTML <area> တဂ်