Global site search, can a label be associated to input field?

Permalink
I've been doing some accessibility tests on a site I developed in 5.6 and one error I am getting is "input element, type of "text", missing an associated label"
and
"input element, type of "text", has no text in label."

I'm using the site search block with the following code in my template

<?php
$a = new GlobalArea('SiteSearch');
$a->display();
?>


Which is generating the following mark-up in question

<input name="query" type="text" value="" class="ccm-search-block-text" />


Does anyone have any suggestions on how I could add a label to associate to the input above?

Thanks

 

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.