C. The closing tag for <h2> is incorrect; it should be </h2>
D. The <html> tag is not closed
Solution
Step 1: Check tag pairs
The <h2> tag opens but closes with </h3>, which is a mismatch.
Step 2: Verify other tags
<title> is correctly inside <head>, <body> and <html> tags are properly closed.
Final Answer:
The closing tag for <h2> is incorrect; it should be </h2> -> Option C
Quick Check:
Matching tags must open and close the same [OK]
Hint: Opening and closing tags must match exactly [OK]
Common Mistakes:
Ignoring mismatched heading tags
Thinking <title> can be outside <head>
Overlooking missing or extra closing tags
5. You want to create a web page with a navigation bar, a main content section, and a footer. Which HTML5 semantic tags should you use to organize these parts?
hard
A. <menu> for navigation, <content> for main content, <bottom> for footer
B. <header> for navigation, <section> for main content, <aside> for footer
C. <div> for navigation, <article> for main content, <footer> for footer
D. <nav> for navigation, <main> for main content, <footer> for footer
Solution
Step 1: Identify semantic tags for page parts
<nav> is for navigation menus, <main> is for main content, <footer> is for footer area.
Step 2: Eliminate incorrect tags
<header> is for page header, <aside> is for side content, <menu> and <content> are not standard semantic tags for these parts.
Final Answer:
<nav> for navigation, <main> for main content, <footer> for footer -> Option D
Quick Check:
Use semantic tags for clear page structure [OK]
Hint: Use nav, main, footer tags for page sections [OK]