如何在 HTML 中新增文件標題?


使用 <title> 標籤來新增文件標題HTML 的 <title> 標籤用於指示 HTML 文件的標題。正文標題放置在 <head> 和 </head> 標籤之間。

示例

可以嘗試執行以下程式碼,學習如何在 HTML 中新增文件標題 −

<!DOCTYPE html>
<html>
   <head>
      <title>Title comes here</title>
   </head>
   <body>
      <p>title tag is used for indicating the title of the HTML document. HTML document
         title is visible via browser’s title bar.</p>
   </body>
</html>

更新日期:2020-03-02

236 人瀏覽

開啟 職業生涯

完成課程即可獲得認證

開始
廣告
© . All rights reserved.