Which of the following is a semantic HTML element?

Learn web design with our comprehensive test guide. Improve your skills with flashcards and multiple choice questions. Each question includes hints and explanations. Get ready to ace your exam!

Multiple Choice

Which of the following is a semantic HTML element?

Explanation:
Semantic HTML elements convey meaning about the content they wrap, helping browsers and assistive tech understand the page structure. The article element defines a self-contained composition that could stand alone or be redistributed, such as a blog post, news item, or product description. Its content carries standalone relevance, which makes it the clearest semantic wrapper for content that has its own meaning beyond the surrounding page. In contrast, div and span are generic containers with no inherent meaning, used mainly for layout or styling. The header element is also semantic, but it serves as introductory content for a section or article rather than representing standalone content by itself. So the best choice is the element that explicitly models a self-contained piece of content: article.

Semantic HTML elements convey meaning about the content they wrap, helping browsers and assistive tech understand the page structure. The article element defines a self-contained composition that could stand alone or be redistributed, such as a blog post, news item, or product description. Its content carries standalone relevance, which makes it the clearest semantic wrapper for content that has its own meaning beyond the surrounding page. In contrast, div and span are generic containers with no inherent meaning, used mainly for layout or styling. The header element is also semantic, but it serves as introductory content for a section or article rather than representing standalone content by itself. So the best choice is the element that explicitly models a self-contained piece of content: article.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy