此頁面由社群從英文翻譯而來。了解更多並加入 MDN Web Docs 社群。
<head>
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
HTML 中的<head> 元素包含有關文件的機器可讀信息(後設資料),例如標題、腳本、樣式表。
備註:<head> 主要保存用於機器處理的訊息,而不是人類可讀的訊息。對於人類可見的訊息,例如頂級標題和列出的作者,請參見<header> 元素。
In this article
屬性
這個元件屬性含有全域屬性。
範例
html
<!doctype html><html lang="en-US"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width" /> <title>Document title</title> </head></html>技術摘要
規範
| Specification |
|---|
| HTML> # the-head-element> |
瀏覽器相容性
參見
- 可以使用在
<head>中的元素: