Which HTML element is used to specify a header for a document or section?

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 HTML element is used to specify a header for a document or section?

Explanation:
HTML uses semantic elements to describe the structure of the page. The header element is used to define the header area for a document or for a section, typically containing the title, logo, or navigation. Because it’s specifically meant to introduce the content that follows, it’s the best choice for labeling a header. A section groups related content under a theme but isn’t itself a header. An article is a self-contained, distributable piece of content, not a header. A footer marks the bottom area with concluding information, not the header.

HTML uses semantic elements to describe the structure of the page. The header element is used to define the header area for a document or for a section, typically containing the title, logo, or navigation. Because it’s specifically meant to introduce the content that follows, it’s the best choice for labeling a header. A section groups related content under a theme but isn’t itself a header. An article is a self-contained, distributable piece of content, not a header. A footer marks the bottom area with concluding information, not the header.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy