• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Extensions

      Developing extensions for web browsers

    • Accessibility

      Build web projects usable for all

    • Web Technology

      Web technology reference for developers

  • Learn
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • Plus
    • Overview

      A customized MDN experience

    • AI Help

      Get real-time assistance and support

    • Updates

      All browser compatibility updates at a glance

    • Documentation

      Learn how to use MDN Plus

    • FAQ

      Frequently asked questions about MDN Plus

  • Curriculum New
  • Blog
    • Playground

      Write, test and share your code

    • HTTP Observatory

      Scan a website for free

    • AI Help

      Get real-time assistance and support

  • Log in
  • Sign up for free
  1. 給開發者的 Web 技術文件
  2. HTML:超文本標記語言
  3. HTML 參考
  4. Elements
    • English (US)
    • Deutsch
    • Español
    • Français
    • 日本語
    • 한국어
    • Português (do Brasil)
    • Русский
    • 中文 (简体)

此頁面由社群從英文翻譯而來。了解更多並加入 MDN Web Docs 社群。

在本文中

  • 嘗試一下
  • 使用注意事項
  • 屬性
  • 範例
  • 無障礙議題
  • 技術摘要
  • 規範
  • 瀏覽器相容性
  • 參見
  1. HTML:超文本標記語言
  2. Guides
  3. 內容類型
  4. Comments
  5. Date and time formats
  6. Constraint validation
  7. Viewport meta element
  8. Responsive images
  9. Microdata
  10. Microformats
  11. 怪異模式與標準模式
  12. HTML cheatsheet
  13. How to
  14. Define terms with HTML
  15. Use data attributes
  16. Use cross-origin images
  17. Add a hitmap on top of an image
  18. Author fast-loading HTML pages
  19. Add JavaScript
  20. Reference
  21. Elements
    1. 已棄用
    2. 已棄用

    3. 已棄用
    4. 已棄用
    5. 實驗性質
    6. 已棄用
    7. 已棄用
    8. 已棄用

文章頁首

html

The Planet Earth

Posted on Wednesday, 4 October 2017 by Jane Smith

We live on a planet that's blue and green, with so many things still unseen.

Continue reading…

結果

無障礙議題

元素在其上下文為 元素時定義了一個 banner 地標。當 HTML 頁首元素是
、
、
、
或
元素的後代時,HTML 頁首元素不被認為是橫幅地標。

技術摘要

內容類型 流內容、捫及內容
允許的內容 流內容,但不包含
或
的後代。
標籤省略 不允許,開始和結束標籤都是必需的。
允許的父元素 任何接受流內容的元素。請注意,
元素不得是
、
或另一個
元素的後代。
隱含的 ARIA 角色 banner,或如果是 article、aside、main、nav 或 section 元素的後代,或具有 role=article、complementary、main、navigation 或 region 的元素,則為 generic。
允許的 ARIA 角色 group、presentation 或 none
DOM 介面 HTMLElement

規範

Specification
HTML
# the-header-element

瀏覽器相容性

參見

  • 其他章節相關元素:、
    、
    、
    、h1、h2、h3、h4、h5、h6、
    、
    、
    。

Help improve MDN

Learn how to contribute.

This page was last modified on 2025年4月13日 by MDN contributors.

View this page on GitHub • Report a problem with this content
MDN logo

Your blueprint for a better internet.

  • MDN on Bluesky
  • MDN on Mastodon
  • MDN on X (formerly Twitter)
  • MDN on GitHub
  • MDN Blog RSS Feed

MDN

  • About
  • Blog
  • Careers
  • Advertise with us

Support

  • Product help
  • Report an issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
  • Hacks Blog
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2025 by individual mozilla.org contributors. Content available under a Creative Commons license.