Check out example codes for "amazon type search box html css". It will help you in understanding the concepts better.

Code Example 1

<FORM action="http://www.amazon.com/exec/obidos/external-search"[RETURN]
   method="get">
<INPUT type="hidden" name="mode" value="blended">
<INPUT type="hidden" name="tag" value="insert associate tag">
Search Amazon:<br>
<INPUT type="text" name="keyword" size="10" value="">
<INPUT TYPE="submit" VALUE="Go">
</FORM>

Learn ReactJs, React Native from akashmittal.com