HTML <main>
query_builder | Christopher PisaniThe HTML element <main> represents the main content of the HTML document, that is displayed on a screen.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<header>
<h1>My First Heading</h1>
</header>
<main>
<p>My first paragraph.</p>
</main>
<footer>
Credits go here...
</footer>
</body>
</html>
Available Attributes
No specific attributes are assigned for this element, other than the standard global attributes.