- 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>
- HTML5+CSS3+JavaScript從入門到精通:上冊(微課精編版·第2版)
- jQuery Mobile Web Development Essentials(Third Edition)
- Deploying Node.js
- 零基礎(chǔ)搭建量化投資系統(tǒng):以Python為工具
- What's New in TensorFlow 2.0
- Raspberry Pi Networking Cookbook(Second Edition)
- Manga Studio Ex 5 Cookbook
- Kotlin Standard Library Cookbook
- 正則表達(dá)式經(jīng)典實(shí)例(第2版)
- Raspberry Pi Home Automation with Arduino(Second Edition)
- D3.js By Example
- Python Data Science Cookbook
- Django Design Patterns and Best Practices
- 深入解析Java編譯器:源碼剖析與實(shí)例詳解
- Python程序設(shè)計(jì)教程