英[meɪn] 美[men]

adj. Main, the most important; all-out

n. The most important part, focus; main channel; physical strength; [nautical ]High seas

Plural: mains

html main tag syntax

Function: Specifies the main content of the document.

Note: The content in the <main> element should be unique to the document. It should not contain content that appears repeatedly throughout the document, such as sidebars, navigation bars, copyright information, site logos, or search forms.

Note: In a document, more than one <main> element cannot appear. The <main> element cannot be a descendant of <article>, <aside>, <footer>, <header>, or <nav>.

html main tag example

<!DOCTYPE html>
<html>
<body>

<main>
  <h1>Web Browsers</h1>
  <p>Google Chrome、Firefox 以及 Internet Explorer 是目前最流行的浏览器。</p>
 
</main> 

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance