Complete the code to declare the document type for HTML5.
<!DOCTYPE [1]>The correct declaration for HTML5 documents is <!DOCTYPE html>. It tells the browser to use the latest HTML standard.
Complete the code to start the HTML document with the root element.
<[1] lang="en">
<head> or <body> as the root<div> instead of <html>The root element of an HTML document is <html>. It wraps all the content of the page.
Fix the error in the code to properly include the character encoding in the head section.
<head>
<meta charset=[1]>
</head>The correct way to specify character encoding is <meta charset="utf-8">. The value must be in double quotes and lowercase.
Fill both blanks to create a semantic section with a heading.
<[1]> <[2]>Welcome to my website</[2]> </[1]>
<div> instead of <section><header> incorrectlyThe <section> tag defines a section of content, and <h1> is used for the main heading inside it.
Fill all three blanks to create a basic HTML document structure.
<!DOCTYPE html> <[1] lang="en"> <[2]> <meta charset="utf-8"> <title>My Page</title> </[2]> <[3]> <p>Hello, world!</p> </[3]> </[1]>
<head> and <body><footer> instead of <body>lang attribute on <html>The root element is <html>. Inside it, <head> contains metadata like the title and charset, and <body> contains the visible content.