- 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>
- jQuery Mobile Web Development Essentials(Third Edition)
- Machine Learning with R Cookbook(Second Edition)
- Python自動化運維快速入門
- 云計算通俗講義(第3版)
- Apache Mesos Essentials
- TradeStation交易應(yīng)用實踐:量化方法構(gòu)建贏家策略(原書第2版)
- 自然語言處理Python進階
- 動手學(xué)數(shù)據(jù)結(jié)構(gòu)與算法
- Spring Boot+Vue全棧開發(fā)實戰(zhàn)
- C++從入門到精通(第6版)
- Perl 6 Deep Dive
- Web前端開發(fā)全程實戰(zhàn):HTML5+CSS3+JavaScript+jQuery+Bootstrap
- Visual C++實用教程
- Fast Data Processing with Spark 2(Third Edition)
- 我跟爸爸學(xué)編程:從Python到C++