?
本文檔使用 php中文網(wǎng)手冊 發(fā)布
HTML<title>
元素定義文檔的標題,顯示在瀏覽器的標題欄或標簽頁上。它只可以包含文本,若是包含有標簽,則包含的任何標簽都不會被解釋。
內容類別 | Metadata content. |
---|---|
允許的內容 | 不是元素間空白的文本 |
標記遺漏 | 打開和關閉標簽都是必需的。請注意,關閉</ title>應該會導致瀏覽器忽略頁面的其余部分 |
允許的父母 | 不包含其他<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) |