<form action="/search" method="get" accept-charset="utf-8" class="search-header search-header-2" role="search">
  <fieldset>
    <legend class="visuallyhidden">Search gov.uk</legend>

    <% if @count_results && @count_results.any? %>
      <label for="search-main" ><%= pluralize(@count_results.length, "result", "results") %> for</label>
    <% else %>
      <label for="search-main">What are you looking for?</label>
    <% end %>

    <input type="search" name="q" value="<%= @search_term %>" id="search-main" /> <input type="submit" value="Search" class="button">
  </fieldset>
</form>

<form action="/search" method="get" accept-charset="utf-8" class="search-header search-header-2" role="search">
  <fieldset>
    <legend class="visuallyhidden">Search gov.uk</legend>

    <label for="search-main">
      <h1>
        <%- if @count_results && @count_results.any? -%>
          <%= pluralize(@count_results.length, "result", "results") %> for
        <%- else -%>
          What are you looking for?
        <%- end -%>
      </h1>
    </label>

    <input type="search" name="q" value="<%= @search_term %>" id="search-main" /> <input type="submit" value="Search" class="button">
  </fieldset>
</form>

Put an H1 inside the search label
Put an H1 inside the search label

This adds context to the page for assistive technology users, and allows
them to easily find where they are.
