• 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
    • 日本語
    • 한국어
    • 中文 (简体)

此頁面由社群從英文翻譯而來。了解更多並加入 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. 已棄用

CSS 替代方法

html

This is the first sentence. This whole sentence is in small letters.

結果

注意事項

儘管 元素,像 和 元素一樣,可能被認為違反結構和表示之間的分離原則,這三者在 HTML 中都是有效的。鼓勵作者在確定使用 還是 CSS 時應據其最佳判斷。

技術摘要

內容類別 流內容、段落型內容
允許的內容 段落型內容
標籤省略 不允許,必須有開始標籤和結束標籤。
允許的父元素 任何接受段落型內容的元素,或任何接受流內容的元素。
隱含的 ARIA 角色 generic
允許的 ARIA 角色 任何
DOM 介面 HTMLElement

規範

Specification
HTML
# the-small-element

瀏覽器相容性

參見

  • 和