HTML教程-HTML<Aside>标签

HTML的<aside>
标签提供了关于主要内容的信息。根据W3C的定义,<aside>
元素表示构成文档主要文本流的内容。
HTML的<aside>
是在HTML5中引入的新标签。
HTML <aside>
标签示例
<p>I don't want to live in Ghaziabad, I wish; I could buy a flat in New Delhi.</p>
<aside>
<h3>New Delhi</h3>
<p>New Delhi is the capital of India.</p>
</aside>
输出:
I don't want to live in Ghaziabad, I wish; I could buy a flat in New Delhi.
New Delhi
New Delhi is the capital of India.
HTML的<aside>
标签也支持HTML中的全局属性和事件属性。
支持的浏览器
元素 | ![]() | ![]() | ![]() | ![]() | ![]() |
---|---|---|---|---|---|
<aside> | 是 | 是 | 是 | 是 | 是 |