定義文檔的標(biāo)題。 Contains the title of the document. 注釋TITLE 元素僅可在 HEAD 元素內(nèi)使用。位于 TITLE 開閉標(biāo)簽之內(nèi)的文本都會(huì)在瀏覽器的標(biāo)題欄和 Microsoft Windows 的任務(wù)欄上顯示。對(duì)于 Web 頁(yè),“Internet Explorer”會(huì)被自動(dòng)追加到標(biāo)題后。而在 HTML 應(yīng)用程序(HTA)中,僅會(huì)顯示指定的標(biāo)題。 要使用腳本在程序中設(shè)置標(biāo)題,請(qǐng)使用 document.title 而不是設(shè)置 title 對(duì)象的 innerHTML 屬性。 此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的腳本中可用。 此元素是塊元素。 此元素需要關(guān)閉標(biāo)簽。 The TITLE element can be used only within the HEAD element. Any text between the opening and closing TITLE tags displays in the browser title bar and in the Microsoft Windows taskbar. In Web pages, "Internet Explorer" is appended to the title. In an HTML Application (HTA), by contrast, only the specified title appears. To set the title programmatically using script, use document.title instead of setting the innerHTML property of the title object. For more information, see Q296113: Script Fails to Change the Document Title of a Web Page. This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0. This element is a block element. This element requires a closing tag. 示例代碼<HEAD> <TITLE>歡迎來到布啦布啦網(wǎng)站!</TITLE> </HEAD> |
|
|