HTML <link> Tag
ဥပမာ
ပြင်ပစတိုင်စာရွက်သို့ လင့်ခ်ချိတ်ပါ-
<head>
<link rel="stylesheet" href="styles.css">
</head>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
တက်ဂ်သည် လက်ရှိ <link>
စာရွက်စာတမ်းနှင့် ပြင်ပအရင်းအမြစ်တစ်ခုကြား ဆက်စပ်မှုကို သတ်မှတ်သည်။
တဂ် ကို ပြင်ပစတိုင်စာရွက်များထံ လင့်ခ်ချိတ်ရန် သို့မဟုတ် သင့်ဝဘ်ဆိုက်သို့ Favicon<link>
ထည့်ရန် အများဆုံးအသုံးပြုလေ့ရှိသည် ။
<link>
ဒြပ်စင်သည် ဗလာဒြပ်စင်ဖြစ်ပြီး ၎င်းတွင် အရည်အချင်းများသာ ပါရှိသည် ။
Browser ပံ့ပိုးမှု
Element | |||||
---|---|---|---|---|---|
<link> | Yes | Yes | Yes | Yes | Yes |
ဂုဏ်တော်
Attribute | Value | Description |
---|---|---|
crossorigin | anonymous use-credentials |
Specifies how the element handles cross-origin requests |
href | URL | Specifies the location of the linked document |
hreflang | language_code | Specifies the language of the text in the linked document |
media | media_query | Specifies on what device the linked document will be displayed |
referrerpolicy | no-referrer no-referrer-when-downgrade origin origin-when-cross-origin unsafe-url |
Specifies which referrer to use when fetching the resource |
rel | alternate author dns-prefetch help icon license next pingback preconnect prefetch preload prerender prev search stylesheet |
Required. Specifies the relationship between the current document and the linked document |
sizes | HeightxWidth any |
Specifies the size of the linked resource. Only for rel="icon" |
title | Defines a preferred or an alternate stylesheet | |
type | media_type | Specifies the media type of the linked document |
ကမ္ဘာလုံးဆိုင်ရာ အရည်အချင်းများ
<link>
tag သည် HTML တွင် Global Attributes ကို ပံ့ပိုး ပေးပါသည်။
ဖြစ်ရပ်ဂုဏ်တော်များ
<link>
tag သည် HTML ရှိ Event Attributes များကိုလည်း ပံ့ပိုး ပေးပါသည် ။
ဆက်စပ်စာမျက်နှာများ
HTML သင်ခန်းစာ- HTML ပုံစံများ
HTML DOM ရည်ညွှန်းချက်- လင့်ခ်အရာဝတ္ထု
မူရင်း CSS ဆက်တင်များ
ဘရောက်ဆာအများစုသည် <link>
အောက်ဖော်ပြပါ ပုံသေတန်ဖိုးများဖြင့် အစိတ်အပိုင်းကို ပြသလိမ့်မည်-
link {
display: none;
}