How do I use the main tag?
-
The main tag is a semantic element that demarcates the main content of a single html document.
Semantic elements give meaning to a html page. Browsers and search engines can make use of these elements.
<!DOCTYPE html> <html> <body> <main> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fermentum iaculis eu non diam phasellus vestibulum.</p> <aside> <h4>Heading One</h4> <p>Vel pretium lectus quam id leo in. Porta nibh venenatis cras sed felis eget velit aliquet.</p> </aside> </main> </body> </html>
© Lightnetics 2024