Recall & Review
beginner
What is the purpose of the
<!DOCTYPE html> declaration in an HTML document?It tells the browser that the document is an HTML5 document, ensuring proper rendering and standards compliance.
Click to reveal answer
beginner
Name the main sections inside a basic HTML document structure.
The main sections are
<head> and <body>. The <head> contains metadata and links, while the <body> contains the visible content.Click to reveal answer
beginner
What is the role of the
<meta charset="UTF-8"> tag in the <head> section?It sets the character encoding to UTF-8, which supports most characters and symbols, ensuring text displays correctly.
Click to reveal answer
beginner
Why should the
<title> tag be included inside the <head>?The
<title> sets the page title shown in the browser tab and helps with search engine results and accessibility.Click to reveal answer
intermediate
What semantic element is used to wrap the main content visible to users in an HTML document?
The
<main> element is used to wrap the main content, helping screen readers and improving page structure.Click to reveal answer
Which tag is used to define the start of an HTML document?
✗ Incorrect
The declaration tells the browser this is an HTML5 document and must be the very first line.
Where should the
<title> tag be placed in an HTML document?✗ Incorrect
The tag belongs inside the section to set the page title.
What does the
<meta charset="UTF-8"> tag do?✗ Incorrect
It defines the character encoding so text displays correctly.
Which element contains the visible content of a webpage?
✗ Incorrect
The element holds all the content users see on the page.
What is the correct order of tags at the start of a simple HTML document?
✗ Incorrect
The document starts with , then , then .
Describe the basic structure of an HTML document and explain the purpose of each main part.
Think about what the browser needs to know first and what parts hold metadata vs visible content.
You got /6 concepts.
Why is it important to include semantic elements like and proper meta tags in your HTML document?
Consider how different users and tools understand your webpage.
You got /5 concepts.