Recall & Review
beginner
What is the purpose of the
<!DOCTYPE html> declaration in an HTML page?It tells the browser that the document is an HTML5 document, helping it to render the page correctly.
Click to reveal answer
beginner
What does the
<title> tag do in an HTML page?It sets the text shown in the browser tab or window title, helping users identify the page.
Click to reveal answer
beginner
Which tag contains the main visible content of a web page?
The
<body> tag contains all the content that users see on the page.Click to reveal answer
intermediate
Why is it important to include the
lang attribute in the <html> tag?It helps browsers and assistive technologies understand the language of the page, improving accessibility.
Click to reveal answer
intermediate
What is the role of the
<meta charset="UTF-8"> tag in the HTML head?It sets the character encoding to UTF-8, ensuring that most characters and symbols display correctly.
Click to reveal answer
Which tag is used to define the main content visible on a web page?
✗ Incorrect
The tag contains all the visible content of the page.
What does the
<title> tag affect?✗ Incorrect
The tag sets the text shown in the browser tab or window title.
Why do we include
<!DOCTYPE html> at the start of an HTML file?✗ Incorrect
The DOCTYPE declaration tells the browser to use HTML5 rules for rendering.
What is the purpose of the
lang attribute in the <html> tag?✗ Incorrect
The lang attribute helps browsers and screen readers know the page language.
Which tag is used to set the character encoding for the page?
✗ Incorrect
The meta charset tag defines the character encoding, usually UTF-8.
Describe the basic structure of a first HTML page and explain the purpose of each main tag.
Think about what the browser needs to know first and what content is visible.
You got /6 concepts.
Why is accessibility important in your first HTML page, and how can you improve it?
Consider how screen readers and browsers understand your page.
You got /4 concepts.