How do I use the section html tag?
-
The section tag is semantic element.
Think of the section tag as encompassing the a heading and paragraph. The section is a semantic tag, Semantic refers to "meaning". The semantics tags provide meaning to the HTML document.
<!DOCTYPE html> <html> <body> <section> <h1>Heading One</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Morbi quis commodo odio aenean sed adipiscing diam donec.</p> </section> <section> <h1>Heading Two</h1> <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> </section> </body> </html>
© Lightnetics 2024