Simple site search

I just added simple search to this site for my blog posts with the following code:

<form action="http://google.com/search" method="get">
  <div>
    <input type="search" name="q" placeholder="Search" results="0" />
    <input type="hidden" name="q" value="site:wiseheartdesign.com" />
  </div>
</form>

This will create a working search input that looks like this:

The code above leverages a number of little known facts about HTML forms and Google:

© 2013 John W. Long