- Mastering Responsive Web Design
- Ricardo Zea
- 212字
- 2021-07-16 20:33:20
The <aside> element
The HTML
<aside>
element represents a section of the page with content connected tangentially to the rest, which could be considered separate from that content. These sections are often represented as sidebars or inserts. They often contain the definitions on the sidebars, such as definitions from the glossary; there may also be other types of information, such as related advertisements; the biography of the author; web applications; profile information or related links on the blog.
Here are a few important points to remember about the <aside>
element:
- Content that is tangential to the main content can be included in an
<aside>
element. If this content was to be separated from the main content, it would still make sense on its own. - There can be more than one
<aside>
in a single page.
Consider the following example:
<body> <main class="main-container" role="main"> <article class="article-container flex-container"> <section class="main-content"> <header> <h1>The <code><main></code> element </h1> </header> <p>As per the MDN definition:</p> <blockquote> <p>The HTML Main Element (<code><main></code>) represents…</p> </blockquote> </section> <aside class="side-content" role="complementary"> <h2>What Does "Semantic HTML" Mean?</h2> <p>Semantic markup basically means that we use HTML tags to describe what a specific piece of content is.</p> </aside> </article> </main> </body>
推薦閱讀
- Kubernetes實戰
- PHP基礎案例教程
- Java編程指南:基礎知識、類庫應用及案例設計
- 64位匯編語言的編程藝術
- Java系統化項目開發教程
- Java程序設計入門
- Creating Mobile Apps with jQuery Mobile(Second Edition)
- MongoDB,Express,Angular,and Node.js Fundamentals
- MySQL入門很輕松(微課超值版)
- HTML+CSS+JavaScript網頁設計從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- 運維前線:一線運維專家的運維方法、技巧與實踐
- Java程序設計與項目案例教程
- QPanda量子計算編程
- Python大規模機器學習
- Mastering Apache Camel