Complete the code to add the language attribute to the HTML tag.
<!DOCTYPE html> <html [1]> <head> <meta charset="UTF-8"> <title>My Page</title> </head> <body> <p>Hello, world!</p> </body> </html>
The lang attribute specifies the language of the document. It should be written as lang="en" for English.
Complete the code to add a viewport meta tag for responsive design.
<head> <meta charset="UTF-8"> <meta name="viewport" content="[1]"> <title>Responsive Page</title> </head>
The viewport meta tag should be width=device-width, initial-scale=1.0 to make the page scale correctly on different devices.
Fix the error in the HTML structure by completing the missing closing tag.
<header>
<h1>Welcome to my site</h1>
[1]
<main>
<p>Content goes here.</p>
</main>The <header> tag must be closed with </header> before starting the <main> section.
Fill both blanks to create a semantic section with a heading.
<[1]> <[2]>About Us</[2]> <p>We build websites.</p> </[1]>
div instead of section.h1 inside a section when a lower heading is better.The <section> tag defines a section, and <h2> is a suitable heading inside it.
Fill all three blanks to create a footer with a paragraph and a link.
<footer> <p>[1]</p> <a href="[2]" aria-label="[3]">Contact us</a> </footer>
The footer paragraph shows the copyright year and name. The link uses a mailto href and an aria-label for accessibility.