What HTML5 tag should be used for filtering search results.


To filter search results, use the <header> element. The header should be in the section of the search results:

<section id = "results">
   <h1>Search results</h1>
   <header id = "search-filters">
      <!-- filters -->
   </header>

   <article>
      <!-- search result 1 -->
   </article>

   <article>
      <!-- search result 2 -->
   </article>

   <article>
      <!-- search result 3 -->
   </article>

   <article>
      <!-- search result 4 -->
   </article>
</section>

Updated on: 28-Jan-2020

98 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements