Recall & Review
beginner
What is an opening tag in HTML?
An opening tag is the start of an HTML element. It tells the browser to begin applying the element's effect or content. It looks like <tagname>.
Click to reveal answer
beginner
What is a closing tag in HTML?
A closing tag marks the end of an HTML element. It looks like </tagname> and tells the browser to stop applying the element's effect.
Click to reveal answer
beginner
Why do most HTML elements need both opening and closing tags?
Because the opening tag starts the element and the closing tag ends it. This helps the browser know where the element's content begins and ends, like a book chapter with a start and finish.
Click to reveal answer
beginner
Give an example of an HTML element with opening and closing tags.
Example: <p>This is a paragraph.</p> Here, <p> is the opening tag and </p> is the closing tag. The text between them is the content.
Click to reveal answer
beginner
Are there HTML tags that do not need closing tags? Give an example.
Yes, some tags are self-closing and do not need a closing tag. For example, <br> adds a line break and stands alone without a closing tag.
Click to reveal answer
Which of these is a correct opening tag for a paragraph?
✗ Incorrect
The opening tag for a paragraph is <p>. The </p> is the closing tag.
What does a closing tag look like?
✗ Incorrect
A closing tag has a slash before the tag name, like </tagname>.
Why do we need both opening and closing tags?
✗ Incorrect
Opening and closing tags tell the browser where the element content starts and ends.
Which tag is self-closing and does not need a closing tag?
✗ Incorrect
<br> is a self-closing tag that adds a line break without needing a closing tag.
What is wrong with this HTML? <p>Hello World<p>
✗ Incorrect
The second <p> should be a closing tag </p> to properly end the paragraph.
Explain what opening and closing tags are in HTML and why they are important.
Think about how a book chapter has a start and an end.
You got /3 concepts.
Describe the difference between tags that need closing tags and self-closing tags with examples.
Some tags stand alone, others wrap content.
You got /3 concepts.