Semantic HTML5 Elements
HTML5 introduced several new semantic elements that provide better structure and meaning to web pages. Here are some of the key semantic elements:
Section
Sections are used to group related content together. They typically have a heading and can contain other elements like paragraphs, images, and lists.
Aside
Asides are used for content that is tangentially related to the main content. They are often presented as sidebars or callout boxes.
Article
Articles are for self-contained content that could be distributed independently from the rest of the site. Examples include a forum post, a magazine or newspaper article, or a blog entry.
Main
The main element is used to encapsulate the dominant content of the body of a document. There should only be one main element per document.
Forms, Lists, and Data
HTML5 also improved form elements and introduced better ways to structure lists and tabular data.