如何在 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>

更新於: 02-3-2020

243 人閱讀

開啟你的 職業

完成課程獲得認證

開始
Advertisement
© . All rights reserved.