HTML
<aside>
element
represents a portion of a document whose content is only indirectly related to the document's main content.
Asides are frequently presented as sidebars or call-out boxes.
| 内容类别 | 流内容 , 区间内容 , palpable content . |
|---|---|
| 准许内容 | 流内容 . |
| Tag omission | None, both the starting and ending tag are mandatory. |
| Permitted parents |
Any element that accepts
flow content
. Note that an
<aside>
element must not be a descendant of an
<address>
元素。
|
| Implicit ARIA role |
complementary
|
| Permitted ARIA roles |
feed
,
none
,
note
,
presentation
,
region
,
search
|
| DOM 接口 |
HTMLElement
|
此元素只包括 全局属性 .
<aside>
element to tag parenthesized text, as this kind of text is considered part of the main flow.
此范例使用
<aside>
to mark up a paragraph in an article. The paragraph is only indirectly related to the main article content:
<article>
<p>
The Disney movie <cite>The Little Mermaid</cite> was
first released to theatres in 1989.
</p>
<aside>
<p>
The movie earned $87 million during its initial release.
</p>
</aside>
<p>
More info about the movie...
</p>
</article>
| 规范 | 状态 | 注释 |
|---|---|---|
|
HTML 实时标准
The definition of '<aside>' in that specification. |
实时标准 | |
|
HTML5
The definition of '<aside>' in that specification. |
推荐 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
aside
|
Chrome 完整支持 5 | Edge 完整支持 12 | Firefox 完整支持 4 | IE 完整支持 9 | Opera 完整支持 11.1 | Safari 完整支持 5 | WebView Android 完整支持 Yes | Chrome Android 完整支持 Yes | Firefox Android 完整支持 4 | Opera Android 完整支持 11.1 | Safari iOS 完整支持 4.2 | Samsung Internet Android 完整支持 Yes |