?
This document uses PHP Chinese website manual Release
HTML<title>
元素定義文檔的標(biāo)題,顯示在瀏覽器的標(biāo)題欄或標(biāo)簽頁上。它只可以包含文本,若是包含有標(biāo)簽,則包含的任何標(biāo)簽都不會被解釋。
內(nèi)容類別 | Metadata content. |
---|---|
允許的內(nèi)容 | 不是元素間空白的文本 |
標(biāo)記遺漏 | 打開和關(guān)閉標(biāo)簽都是必需的。請注意,關(guān)閉</ title>應(yīng)該會導(dǎo)致瀏覽器忽略頁面的其余部分 |
允許的父母 | 不包含其他<title>元素的<head>元素。 |
允許ARIA角色 | 沒有 |
DOM接口 | HTMLTitleElement |
這個元素只包含全局屬性。
<title>Awesome page title</title>
Specification | Status | Comment |
---|---|---|
HTML Living StandardThe definition of '<title>' in that specification. | Living Standard | |
HTML5The definition of '<title>' in that specification. | Recommendation | |
HTML 4.01 SpecificationThe definition of '<title>' in that specification. | Recommendation |
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic Support | 1.0 | (Yes) | 1.0 | 1.0 | 1.0 | 1.0 |
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) |