You could use the header
element:
The
header
element represents a group of introductory or navigational aids.
Note that the header
needs to be in the sectioning element (in your case, section
) of the search results:
<section id="search_results">
<h1>Search results</h1>
<header id="search-filters">
<!-- your filters -->
</header>
<article>
<!-- search result 1 -->
</article>
<article>
<!-- search result 2 -->
</article>
</section>
You could include the h1
in the header
too, if you like. If you then need a styling hook for the filters, you could use a wrapper div
.
If your filters are rather complex, e.g. if you offer many filters, probably with subheadings, you could use a section
element inside of the header
:
<section id="search_results">
<h1>Search results</h1>
<header id="search-filters">
<section>
<h2>Filter the results</h2>
<!-- your filters -->
</section>
</header>
<article>
<!-- search result 1 -->
</article>
<article>
<!-- search result 2 -->
</article>
</section>