HTML Checking for Large Sites
Rocket Validator automatically checks your pages on the W3C Validator.
HTML issues tagged as header.
The <header>
HTML element represents introductory content, typically a group of introductory or navigational aids, and has an implicit role of banner
, so specifying this role is redundant.
The following example represents a banner using the role
attribute:
<div role="banner">
<img src="companylogo.svg" alt="my company name" />
<h1>Title</h1>
<p>Subtitle</p>
</div>
By default, the HTML5 <header>
element has an identical meaning to the banner landmark, unless it is a descendant of <aside>
, <article>
, <main>
, <nav>
, or <section>
, at which point <header>
is the heading for that section and not the equivalent of the site-wide banner.
This example uses the <header>
element instead of the banner
role:
<header>
<img src="companylogo.svg" alt="my company name" />
<h1>Title</h1>
<p>Subtitle</p>
</header>
25,000 HTML checks per month. Is that enough for your site?
Save time using our automated web checker. Let our crawler check your web pages on the W3C Validator.