HTML and CSS Certification 2025 – 400 Free Practice Questions to Pass the Exam

Image Description

Question: 1 / 400

What HTML element is used to define a header in a page?

<header>

The `<header>` element is used to define a header section within an HTML document. This element typically contains introductory content or navigational links, making it an important part of a webpage's structure. It helps to encapsulate headers for a specific section or the entire page, improving both the semantic meaning and the accessibility of the content.

In contrast, the `<head>` element serves to contain meta-information about the document itself, like title tags, scripts, and links to stylesheets but does not define visible content on the page. The `<h1>` element, while used to denote the main heading of a page or section, does not function as a container for broader header content; it's simply a heading tag with a specific ranking in terms of importance. The `<title>` element specifies the title of the document that appears in the browser tab, but does not contribute to the visible structure of the page header.

Thus, the correct use of the `<header>` tag is to encapsulate multiple types of content relevant for headers, while other options represent different functionalities within an HTML document.

Get further explanation with Examzify DeepDiveBeta

<head>

<h1>

<title>

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy