Set autofocus to an input in html?
<p>I have some html code and I've heard that autofocus will speed up search results etc. How can I do that with existing code?</p>

<p>I have been looking on other threads etc how to do this and I have tried to understand but I can't if someone could help me out here I would be awesome.</p>

<pre><code>&lt;input type="text" class="form-control" id="query" name="query" value="&lt;?php if($this-&gt;input-&gt;post('query')) { echo $this-&gt;input-&gt;post('query'); } ?&gt;" placeholder="Search here"&gt;
</code></pre>