Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Semantic HTML Example</title> </head> <body> <header> <h1>Main Heading</h1> </header> <nav> <ul> <li><a href="#section1">Section 1</a></li> <li><a href="#section2">Section 2</a></li> </ul> </nav> <main> <section id="section1"> <h2>Section 1</h2> <p>Content for section 1.</p> </section> <section id="section2"> <h2>Section 2</h2> <p>Content for section 2.</p> </section> </main> <footer> <p>Footer content</p> </footer> </body> </html>