C. Mismatched heading tags: <h2> opened but </h3> closed
D. Section tag cannot contain article tag
Solution
Step 1: Check tag pairs for correctness
The heading starts with <h2> but incorrectly closes with </h3>, which is a mismatch.
Step 2: Verify other tags
The <article> and <section> tags are properly opened and closed; paragraph tag is valid inside article.
Final Answer:
Mismatched heading tags: <h2> opened but </h3> closed -> Option C
Quick Check:
Matching tags must open and close the same [OK]
Hint: Match opening and closing tags exactly [OK]
Common Mistakes:
Ignoring tag mismatch errors
Assuming section cannot contain article
Thinking paragraph is invalid inside article
5. You want to create a blog page with multiple posts. Each post has a title, author, and content. Which is the best HTML structure to organize this content semantically?
hard
A. \n \n
Post Title
\n
By Author
\n
Post content here.
\n \n \n
Another Post
\n
By Another Author
\n
More content here.
\n \n
B. \n \n
Post Title
\n
By Author
\n
Post content here.
\n \n \n
Another Post
\n
By Another Author
\n
More content here.
\n \n
C.
\n
\n
Post Title
\n
By Author
\n
Post content here.
\n
\n
\n
Another Post
\n
By Another Author
\n
More content here.
\n
\n
D. \n \n
Post Title
\n
By Author
\n
Post content here.
\n \n \n
Another Post
\n
By Another Author
\n
More content here.
\n \n
Solution
Step 1: Understand semantic roles of <section> and <article>
<section> groups related content; <article> is for independent, self-contained content like blog posts.
Step 2: Analyze each option's structure
<section>\n <article>\n <h2>Post Title</h2>\n <p>By Author</p>\n <p>Post content here.</p>\n </article>\n <article>\n <h2>Another Post</h2>\n <p>By Another Author</p>\n <p>More content here.</p>\n </article>\n</section> uses one <section> to group all posts, each post is an <article> with title, author, and content. This is semantically correct. <article>\n <section>\n <h2>Post Title</h2>\n <p>By Author</p>\n <p>Post content here.</p>\n </section>\n <section>\n <h2>Another Post</h2>\n <p>By Another Author</p>\n <p>More content here.</p>\n </section>\n</article> wrongly nests <section> inside <article>. <div>\n <div>\n <h2>Post Title</h2>\n <p>By Author</p>\n <p>Post content here.</p>\n </div>\n <div>\n <h2>Another Post</h2>\n <p>By Another Author</p>\n <p>More content here.</p>\n </div>\n</div> uses generic <div> without semantic meaning. <section>\n <section>\n <h2>Post Title</h2>\n <p>By Author</p>\n <p>Post content here.</p>\n </section>\n <section>\n <h2>Another Post</h2>\n <p>By Another Author</p>\n <p>More content here.</p>\n </section>\n</section> nests <section> inside <section> for posts, which is less clear than using <article> for posts.
Final Answer:
Option A: section grouping articles for posts -> Option A
Quick Check:
Posts = articles inside a section [OK]
Hint: Use <article> for posts inside a <section> container [OK]
Common Mistakes:
Using <section> instead of <article> for posts
Nesting <section> inside <article> incorrectly
Using only <div> without semantic tags
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.