Example

A simple <main> tag that open PNLdev.com link:

Laboratory

description & Usage

<main> tag is used to create and define the main content of an html document.

The content inserted in the <main> tag should be brief to the relevant document.

Notes

Note: The <main> tag should be used only once in each document.

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
<main>

Global Attributes

The main tag supports the HTML Global Attributes.

Event Attributes

The main tag supports the HTML Event Attributes.

More Examples

Example

HTML <main> tag with custom style -Example #1

Laboratory