Complete the code to start a basic HTML document with the correct doctype declaration.
<!DOCTYPE [1]> <html lang="en"> <head> <meta charset="UTF-8"> <title>My Page</title> </head> <body> </body> </html>
The correct doctype declaration for HTML5 is <!DOCTYPE html> with lowercase html.
Complete the code to set the language of the HTML document to English.
<html [1]="en"> <head> <meta charset="UTF-8"> <title>My Page</title> </head> <body> </body> </html>
html tag.The lang attribute on the <html> tag tells browsers and assistive technologies the language of the page.
Fix the error in the head section by completing the meta tag for responsive design.
<head> <meta charset="UTF-8"> <meta name="viewport" content="[1]"> <title>My Page</title> </head>
The viewport meta tag content must separate properties with commas, like width=device-width, initial-scale=1.0.
Fill both blanks to create a semantic HTML5 document structure with header and main sections.
<[1]> <h1>Welcome</h1> </[2]> <main> <p>This is the main content.</p> </main>
head instead of header for visible page content.footer or section incorrectly.The header element is used to group introductory content or navigation links. It must be closed with </header>.
Fill all three blanks to create a complete HTML5 document with language, charset, and title.
<!DOCTYPE [1]> <html [2]="en"> <head> <meta charset="[3]"> <title>Sample Page</title> </head> <body> </body> </html>
The doctype is html, the language attribute is lang, and the charset is UTF-8 for modern HTML documents.