HTML5-main tag element

What is the use of using main element in the code?

It shows what’s the most important part of the page. It is useful for accessibility options, like for screen readers, and for indexing of pages. You don’t have to have one, but it is useful. And I think you need to use it for the FCC projects
Citing from Mozilla Developers Network:

The HTML <main> element represents the main content of the of a document or application. The main content area consists of content that is directly related to, or expands upon the central topic of a document or the central functionality of an application.

1 Like

The HTML <main> element represents the dominant content of the <body> of a document. The main content area consists of content that is directly related to or expands upon the central topic of a document, or the central functionality of an application

1 Like