Complete the code to start the HTML document with the correct doctype declaration.
<!DOCTYPE [1]> <html lang="en"> <head> <meta charset="UTF-8"> <title>My Page</title> </head> <body> <p>Hello!</p> </body> </html>
The correct doctype declaration for HTML5 is <!DOCTYPE html>. It tells the browser to render the page in standards mode.
Complete the code to add a title inside the head section.
<html lang="en"> <head> <meta charset="UTF-8"> <[1]>My Website</[1]> </head> <body> <h1>Welcome!</h1> </body> </html>
<header> instead of <title>.The <title> tag inside the <head> sets the page title shown in the browser tab.
Fix the error in the code by completing the missing body tag.
<html lang="en"> <head> <meta charset="UTF-8"> <title>Page</title> </head> [1] <p>Content here</p> </body> </html>
<head> instead of <body>.The <body> tag is required to wrap the visible content of the page. It must open before the content and close after.
Fill both blanks to create a meta tag for responsive design inside the head section.
<head> <meta name=[1] content=[2]> <title>Responsive</title> </head>
The meta tag with name="viewport" and content="width=device-width, initial-scale=1.0" makes the page scale correctly on different screen sizes.
Fill all three blanks to create a basic HTML structure with language, charset, and title.
<!DOCTYPE html> <html lang=[1]> <head> <meta charset=[2]> <title>[3]</title> </head> <body> <h1>Welcome!</h1> </body> </html>
The lang attribute should be "en" for English. The charset meta tag uses "UTF-8" for encoding. The title tag sets the page title.