References

Collection of references for web development.

HTML main tag

Description

The HTML <main> element represents the main content of a document, the content inside the element should be different from the outside content, for example this could include articles or posts but shouldn't contain content that is going to be repeated across pages, this could be the websites search bar, navigation, footer, etc.

Example

<main>
	<h1>Vegetables</h1>
	<p>Enjoy the many vegetables that nature has naturally grown for you to eat.</p>
	<article>
		<h1>Carrots</h1>
		<p>Tasty, orange, and a great source of Vitamin A!</p>
	</article>
	<article>
		<h1>Potatoes</h1>
		<p>Round shaped, high-calorie vegetable, you will never go hungry again!</p>
	</article>
</main>