HTML Form How to - Basic google search form








Question

We would like to know how to basic google search form.

Answer


<!-- w w w  . j  a v a2s  . c  o m-->
<!DOCTYPE html>
<html>
<body>

  <form method="get" action="http://www.google.com/search">
    <input type="text" name="q" size="31" maxlength="255" value="" /> <input
      type="submit" value="Search" /> <input type="hidden"
      name="sitesearch" value="wrox.com" />
  </form>

</body>

</html>

The code above is rendered as follows: