Meta name Property
ဥပမာ
မက်တာဒြပ်စင်အားလုံး၏ အကြောင်းအရာ attribute ၏တန်ဖိုးကို ပြန်ပေးပါ။
var x = document.getElementsByTagName("META");
var txt = "";
var i;
for (i = 0; i < x.length; i++) {
txt = txt + "Name of "+(i+1)+". meta tag: "+x[i].name+"<br>";
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
အမည်ပိုင်ဆိုင်မှုသည် အကြောင်းအရာ ရည်ညွှန်းချက်ရှိ အချက်အလက်အတွက် အမည်တစ်ခုကို သတ်မှတ် သို့မဟုတ် ပြန်ပေးသည်။
name attribute ၏တန်ဖိုးသည် content attribute ၏တန်ဖိုးပေါ်တွင်မူတည်သည်။
WHATWG Wiki MetaExtensions စာမျက်နှာတွင် သတ်မှတ်ထားသော တိုးချဲ့စာရင်းတစ်ခုလည်း ရှိသည် - အမျိုးအစားအသစ်တစ်ခုထည့်ရန် စာမျက်နှာကို မည်သူမဆို အချိန်မရွေး အခမဲ့တည်းဖြတ်နိုင်သည်။ မည်သည့်အရာကိုမျှ တရားဝင်လက်မခံသော်လည်း နောင်တွင် ဖြစ်နိုင်သည်။ ပိုမိုသိရှိလိုပါက၊ WHATWG Wiki MetaExtensions စာမျက်နှာ သို့ ဝင်ရောက်ကြည့်ရှုပါ ။
မှတ်ချက်- http-equiv attribute ကို သတ်မှတ်ပါက၊ name attribute ကို မသတ်မှတ်သင့်ပါ။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
name | Yes | Yes | Yes | Yes | Yes |
အထားအသို
အမည် ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
metaObject.name
အမည်ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
metaObject.name = "application-name|author|description|generator|keywords"
Value | Description |
---|---|
application-name | Specifies the name of the Web application that the page represents |
author | Specifies the name of the author of the document. Example: <meta name="author" content="Hege Refsnes"> |
description | Specifies a description of the page. Search engines can pick up this description to show with the results of searches. Example: <meta name="description" content="Free web tutorials"> |
generator | Specifies one of the software packages used to generate the document (not used on hand-authored pages) Example: <meta name="generator" content="FrontPage 4.0"> |
keywords | Specifies a comma-separated list of keywords - relevant to the page (Informs search engines what the page is about). Tip: Always specify keywords (needed by search engines to catalogize the page). Example: <meta name="keywords" content="HTML, meta tag, tag reference"> |
တန်ဖိုးကို ပြန်ပေးသည်။
Type | Description |
---|---|
String | A name for the information in the content attribute |
❮ Meta Object