国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

directory search
Attributes accesskey (attribute) class (attribute) contenteditable (attribute) contextmenu (attribute) data-* (attribute) dir (attribute) draggable (attribute) dropzone (attribute) Global attributes hidden (attribute) id (attribute) itemid (attribute) itemprop (attribute) itemref (attribute) itemscope (attribute) itemtype (attribute) lang (attribute) slot (attribute) spellcheck (attribute) style (attribute) tabindex (attribute) title (attribute) translate (attribute) Elements a abbr address area article aside audio b base bdi bdo blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 head header hr html i iframe img input input type="button" input type="checkbox" input type="color" input type="date" input type="datetime"-local input type="email" input type="file" input type="hidden" input type="image" input type="month" input type="number" input type="password" input type="radio" input type="range" input type="reset" input type="search" input type="submit" input type="tel" input type="text" input type="time" input type="url" input type="week" ins kbd label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt rtc ruby s samp script section select slot small source span strong style sub summary sup table tbody td template textarea tfoot th thead time title tr track u ul var video wbr Miscellaneous Attributes Block-level elements CORS enabled image CORS settings attributes Element Inline elements Kinds of HTML content Link types Microdata Optimizing your pages for speculative parsing Preloading content Reference Supported media formats Using the application cache Obsolete acronym applet basefont big blink center command content dir element font frame frameset hgroup image input type="datetime" isindex keygen listing marquee nextid noframes plaintext strike tt xmp
characters

HTML <meta> 元素表示元數(shù)據(jù)不能由其他HTML元相關的元素,<base>,<link><script>,<style><title> 表示。

內(nèi)容類別

元數(shù)據(jù)內(nèi)容。如果itemprop屬性存在:流內(nèi)容,措辭內(nèi)容。

允許的內(nèi)容

沒有,這是一個空的元素。

標記遺漏

由于它是空白元素,所以開始標記必須存在,并且結束標記不得存在。

允許父母

<meta charset>,<meta http-equiv>:一個<head>元素。如果http-equiv不是一個編碼聲明,它也可以在一個<head>元素內(nèi)部,它本身在一個<head>元素內(nèi)。

允許ARIA角色

沒有

DOM界面

HTML元素meta

屬性

該元素包含全局屬性。

注:全局屬性name具有了特定的含義<meta>元素和itemprop屬性必須在不同的<meta>設置任何現(xiàn)有的元素name,http-equivcharset屬性。

charset聲明頁面的字符編碼。此屬性必須包含字符編碼的標準IANA MIME名稱。雖然標準沒有要求特定的編碼,但它暗示了......

  • 鼓勵作者使用UTF-8。

  • 作者不應該使用與ASCII不兼容的編碼來避免安全風險:不支持它們的瀏覽器可能會將無害的內(nèi)容解釋為HTML。這種情況至少JIS_C6226-1983,JIS_X0212-1990HZ-GB-2312,JOHAB,的ISO-2022系列,以及EBCDIC家庭。(ASCII不相容編碼是那些不將8位的代碼點映射0x200x7E0x00200x007EUnicode代碼點)

  • 作者不得使用CESU-8,UTF-7,BOCU-1SCSU,因為跨站點腳本與這些編碼攻擊已被證明。

  • 作者不應該使用,UTF-32因為不是所有的HTML5編碼算法都可以區(qū)分它UTF-16。

筆記:

  • 聲明的字符編碼必須與頁面保存的字符編碼匹配,以避免出現(xiàn)亂碼和安全漏洞。

  • <meta>聲明的編碼元素必須是內(nèi)部<head>元件和第1024個字節(jié)中的HTML,某些瀏覽器只能看著這些字節(jié)選擇一個編碼之前。

  • <meta>元素只是確定頁面字符集的算法的一部分。該Content-Type頭和任何字節(jié)順序標記覆蓋此元素。

  • 強烈建議您定義字符編碼。如果頁面的編碼未定義,則可以使用交叉腳本技術,例如UTF-7回退跨腳本技術。

  • <meta>帶有charset屬性的元素是HTML5之前的同義詞,其中包含等效屬性的值。盡管不再推薦,但該語法仍然是允許的。<meta http-equiv="Content-Type" content="text/html; charset=IANAcharset">IANAcharsetcharset

content此屬性包含http-equivor name屬性的值,具體取決于所使用的值。http-equiv該屬性可以包含HTTP頭的名稱,因此屬性名稱為http-equiv alent。它定義了一條可以改變服務器和用戶代理行為的指令。指令的值是在content屬性內(nèi)定義的,可以是下列之一:"content-language"定義頁面的默認語言。它可以被任何元素的lang屬性覆蓋。

不要使用這個值,因為它已經(jīng)過時了。優(yōu)先lang選擇<html>元素上的屬性。

"content-security-policy"允許頁面作者為當前頁面定義內(nèi)容策略。內(nèi)容策略通常指定允許的服務器源和腳本端點,這有助于防止跨站點腳本攻擊。"content-type"定義文檔的MIME類型,后跟其字符編碼。它遵循與HTTP content-type實體標題字段相同的語法,但由于它位于HTML頁面內(nèi),除了text/html不可能以外,大多數(shù)值都是。因此,其有效語法content是字符串' text/html',后面跟著一個字符集,其語法如下:' ; charset=IANAcharset',其中IANAcharset是由IANA定義的字符集的首選MIME名稱。

使用說明:

  • 不要使用這個值,因為它已經(jīng)過時了。優(yōu)先charset選擇<meta>元素上的屬性。

  • 由于<meta>無法在XHTML或HTML5的XHTML序列化中更改文檔類型,因此請勿將MIME類型設置為XHTML MIME類型<meta>。

"refresh"該指令規(guī)定:

  • 如果content屬性僅包含正整數(shù),則應重新載入頁面的秒數(shù)。

  • 直到頁面重定向到另一個頁面的秒數(shù),如果該content屬性包含一個正整數(shù),后跟字符串“ ;url=',則為有效URL。

"set-cookie"為頁面定義一個cookie。其內(nèi)容必須遵循IETF HTTP Cookie規(guī)范中定義的語法。

注意:不要使用這個指令,因為它已經(jīng)過時了。Set-Cookie改為使用HTTP標頭。

name

該屬性定義了一段文檔級元數(shù)據(jù)的名稱。它不應該,如果一個屬性進行設置itemprop,http-equiv或者也設置charset

此元數(shù)據(jù)名稱與該content屬性包含的值相關聯(lián)。name屬性的可能值是:

  • application-name定義在網(wǎng)頁中運行的應用程序的名稱。

  • 注意:

    • 瀏覽器可以使用它來識別應用程序。它與<title>通常包含應用程序名稱的元素不同,但也可能包含文檔名稱或狀態(tài)等信息。

    • 簡單的網(wǎng)頁不應定義應用程序名稱。

  • author 定義文檔作者的名字。

  • description包含頁面內(nèi)容的簡短而準確的摘要。一些瀏覽器,如Firefox和Opera,將其用作書簽頁面的默認描述。

  • generator 包含生成頁面的軟件的標識符。

  • keywords 包含與頁面內(nèi)容相關的單詞,用逗號分隔。

  • referrer  控制附加到從文檔發(fā)送的請求的RefererHTTP標頭:content屬性的值<meta name="referrer"> no-referrer不發(fā)送HTTP Referer標頭。   origin發(fā)送文件的來源。   no-referrer-when-downgrade將來源作為引薦來源發(fā)送到網(wǎng)址,與當前網(wǎng)頁(https→https)一樣安全,但不要將引薦來源發(fā)送到安全性較低的網(wǎng)址(https→http)。這是默認行為。   origin-when-crossorigin發(fā)送完整的URL(去除參數(shù))用于同源請求,但只發(fā)送其他情況的原點。   unsafe-URL發(fā)送同源或跨源請求的完整URL(剝離參數(shù))。

- Some browsers support the deprecated values `always`, `default`, and `never` for referrer.- Dynamically inserting `<meta name="referrer">` (with [`document.write`](https://developer.mozilla.org/en-US/docs/Web/API/Document/write) or [`appendChild`](https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild)) makes referrer behavior unpredictable.- When several conflicting policies are defined, the no-referrer policy is applied.

該屬性也可能具有從WHATWG Wiki MetaExtensions頁面上定義的擴展列表中取得的值。盡管尚未正式接受,但一些常用的名稱是:

最后,有幾個名字是常用的,雖然沒有被標準化:

  • creator定義文檔的創(chuàng)建者的名稱,例如組織或機構。如果有多個,<meta>應該使用幾個元素。

  • googlebot,robotsGooglebot是Google的索引爬行程序的同義詞,但后面跟著它。

  • publisher 定義文檔發(fā)布者的名稱。

  • robots定義協(xié)作抓取工具或“機器人”應該在頁面中使用的行為。它是以下值的逗號分隔列表:值<meta name="robots">    描述使用的內(nèi)容值      index允許機器人為頁面編制索引(默認值)。全部    noindex請求機器人不索引頁面。全部    follow允許機器人按照頁面上的鏈接(默認)。全部    nofollow請求機器人不遵循頁面上的鏈接。nonenoindex, nofollow Google 等同的所有內(nèi)容    noodp阻止將開放目錄項目描述(如果有)用作搜索引擎結果中的頁面描述。  Google,Yahoo,Bing noarchive請求搜索引擎不緩存頁面內(nèi)容。  Google,Yahoo,Bing nosnippet阻止在搜索引擎結果中顯示頁面的任何描述。  Google,Bing noimageindex請求此頁面不會顯示為索引圖像的引用頁面。Google的 nocache同義詞noarchive。Bing 筆記:

    • 只有合作機器人遵循這些規(guī)則。不要期望與他們一起阻止電子郵件收割機。

    • 機器人仍然需要訪問該頁面才能閱讀這些規(guī)則。為了防止帶寬消耗,請使用robots.txt文件。

    • 如果你想刪除一個頁面,noindex將工作,但只有在機器人再次訪問頁面后。確保robots.txt文件不妨礙重訪。一些搜索引擎具有開發(fā)人員的工具,可以快速刪除頁面。

    • 有些值是互斥的,比如indexnoindex,或follownofollow。在這些情況下,機器人的行為是不確定的,它們之間可能有所不同。

    • 一些爬行機器人,如Google,Yahoo和Bing,支持HTTP標頭的相同值X-Robot-Tags; 這允許諸如圖像的非HTML文檔使用這些規(guī)則。

  • slurp,是robotsYahoo搜索的抓取工具Slurp 的同義詞。

  • viewport,它提供了有關視口初始大小的提示。僅供移動設備使用。值<meta name="viewport">    可能的子值的內(nèi)容的值說明      width正整數(shù)或文本device-width  定義視口的像素寬度,或允許視口適應設備的屏幕寬度。   height正整數(shù)或文本device-height  定義視口的高度。不被任何瀏覽器使用。   initial-scale介于0.010.0  之間的正數(shù)定義設備寬度(device-width縱向模式或device-height橫向模式)與視口大小之間的比率。   和maximum-scale之間的正數(shù)0.010.0  定義要放大的最大金額。它必須大于或等于minimum-scale或未定義行為。瀏覽器設置可以忽略這個規(guī)則,iOS10 +默認忽略它。   minimum-scale介于0.0和之間的正數(shù)10.0  定義最小縮放級別。它必須小于或等于maximum-scale行為未定義。瀏覽器設置可以忽略這個規(guī)則,iOS10 +默認忽略它。   user-scalable yes或者no  如果設置為no,用戶無法放大網(wǎng)頁。默認是yes。瀏覽器設置可以忽略這個規(guī)則,iOS10 +默認忽略它。規(guī)范狀態(tài)注釋      CSS設備適配 在該規(guī)范中定義'<meta name =“viewport”>“。工作草案非規(guī)范性地描述了視口META元素另請參見:注意: 雖然沒有標準化,但由于事實上的支配地位,大多數(shù)移動瀏覽器都會遵守此聲明。 - 設備和瀏覽器的默認值可能不同。- 要了解關于Firefox for Mobile的聲明,請參閱本文。

scheme屬性定義了描述元數(shù)據(jù)的方案。一個計劃是一個能夠正確解釋content價值的環(huán)境,就像一種格式。

注意:不要使用此值,因為它已過時。沒有替代品,因為它沒有真正的用法。

筆記

Depending on the attributes set, the kind of metadata can be one of the following:

  • 如果name已設置,則為文檔級 元數(shù)據(jù),適用于整個頁面。

  • 如果http-equiv已設置,則它是一個雜注指令 - 通常由Web服務器提供有關如何提供網(wǎng)頁的信息。

  • 如果charset已設置,它是一個字符集聲明 - 網(wǎng)頁使用的字符編碼。

  • 如果itemprop已設置,則它是用戶定義的元數(shù)據(jù) - 對于用戶代理是透明的,因為元數(shù)據(jù)的語義是用戶特定的。

樣例

<meta charset="utf-8"><!-- Redirect page after 3 seconds --><meta http-equiv="refresh" content="3;url=https://www.mozilla.org">

產(chǎn)品規(guī)格

Specification

Status

Comment

Referrer PolicyThe definition of '<meta name="referrer">' in that specification.

Editor's Draft

Defines values and semantics of <meta name="referrer">.

HTML Living StandardThe definition of '<meta>' in that specification.

Living Standard

Added itemprop attribute

HTML5The definition of '<meta>' in that specification.

Recommendation

Added charset attribute

HTML 4.01 SpecificationThe definition of '<meta>' in that specification.

Recommendation


瀏覽器兼容性

Feature

Chrome

Edge

Firefox

Internet Explorer

Opera

Safari

Basic Support

(Yes)

(Yes)

1.0

(Yes)

(Yes)

(Yes)

charset

(Yes)

(Yes)

1.0

(Yes)

(Yes)

(Yes)

content

(Yes)

(Yes)

1.0

(Yes)

(Yes)

(Yes)

http-equiv

(Yes)

(Yes)

1.0

(Yes)

(Yes)

(Yes)

name

(Yes)

(Yes)

1.0

(Yes)

(Yes)

(Yes)

Feature

Android

Chrome for Android

Edge mobile

Firefox for Android

IE mobile

Opera Android

iOS Safari

Basic Support

(Yes)

(Yes)

(Yes)

1.0

(Yes)

(Yes)

(Yes)

charset

(Yes)

(Yes)

(Yes)

1.0

(Yes)

(Yes)

(Yes)

content

(Yes)

(Yes)

(Yes)

1.0

(Yes)

(Yes)

(Yes)

http-equiv

(Yes)

(Yes)

(Yes)

1.0

(Yes)

(Yes)

(Yes)

name

(Yes)

(Yes)

(Yes)

1.0

(Yes)

(Yes)

(Yes)

Previous article: Next article: