- Mastering Responsive Web Design
- Ricardo Zea
- 200字
- 2021-07-16 20:33:19
The <main> element
As per the Mozilla Developer Network (MDN) definition:
The HTML Main Element (
<main>
) can be used as a container for the dominant contents of the document. The main content area consists of content that is directly related to, or expands upon the central topic of a section or the central functionality of an application. This content should be unique to the document, excluding any content that is repeated across a set of documents such as sidebars, navigation links, copyright information, site logos, and search forms (unless, of course, the document's main function is as a search form). Unlike<article>
and<section>
, this element does not contribute to the document outline.
Here are a few important points to remember about the <main>
element:
Consider the following example:
<body> <main class="main-container" role="main">Content goes here </main> </body>
- JavaScript:Functional Programming for JavaScript Developers
- Java Web基礎與實例教程(第2版·微課版)
- Mastering Kali Linux for Web Penetration Testing
- Java程序設計與實踐教程(第2版)
- 概率成形編碼調制技術理論及應用
- Learning Probabilistic Graphical Models in R
- Spring MVC+MyBatis開發從入門到項目實踐(超值版)
- Apache Solr PHP Integration
- 嵌入式Linux C語言程序設計基礎教程
- Julia High Performance(Second Edition)
- 30天學通C#項目案例開發
- PowerDesigner 16 從入門到精通
- 超簡單:Photoshop+JavaScript+Python智能修圖與圖像自動化處理
- Clojure High Performance Programming(Second Edition)
- Python網絡爬蟲實例教程(視頻講解版)