英 [me?n]? ?美 [men]??
adj.主要的,最重要的;全力的
n.最主要的部分,重點(diǎn);主要管道;體力;[航海]公海
復(fù)數(shù): mains
html main標(biāo)簽 語法
作用:規(guī)定文檔的主要內(nèi)容。
說明:<main> 元素中的內(nèi)容對(duì)于文檔來說應(yīng)當(dāng)是唯一的。它不應(yīng)包含在文檔中重復(fù)出現(xiàn)的內(nèi)容,比如側(cè)欄、導(dǎo)航欄、版權(quán)信息、站點(diǎn)標(biāo)志或搜索表單。
注釋:在一個(gè)文檔中,不能出現(xiàn)一個(gè)以上的 <main> 元素。<main> 元素不能是以下元素的后代:<article>、<aside>、<footer>、<header> 或 <nav>。
html main標(biāo)簽 示例
<!DOCTYPE html> <html> <body> <main> <h1>Web Browsers</h1> <p>Google Chrome、Firefox 以及 Internet Explorer 是目前最流行的瀏覽器。</p> </main> </body> </html>
運(yùn)行實(shí)例 ?
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例