Complete the code to create a semantic header section.
<[1]>Welcome to my website</[1]>
The header tag is used to define the header of a page or section, making the structure clear to browsers and assistive technologies.
Complete the code to mark up the main content area semantically.
<[1]>This is the main content of the page.</[1]>
The main tag defines the main content of the document, which is unique and central to the page.
Fix the error in the code by choosing the correct semantic tag for a navigation menu.
<[1]> <ul> <li><a href="#home">Home</a></li> <li><a href="#about">About</a></li> </ul> </[1]>
The nav tag is the correct semantic element to wrap navigation links, helping screen readers and search engines understand the page structure.
Fill both blanks to create a semantic article with a footer.
<[1]> <h2>My Article</h2> <p>This is an article about semantic HTML.</p> <[2]> <p>Written by Jane Doe</p> </[2]> </[1]>
The article tag wraps the content that forms an independent piece of content, and the footer tag inside it contains information about the article like the author.
Fill all three blanks to create a semantic page layout with header, main, and footer.
<[1]> <h1>Site Title</h1> </[1]> <[2]> <p>Welcome to the homepage.</p> </[2]> <[3]> <p>Contact info here.</p> </[3]>
The header tag is for the top section, main for the main content, and footer for the bottom section of the page. This structure helps browsers and assistive tools understand the page layout.