What is the simplest search form input

<form action="/" method="get">
  <input type="text" name="q"><br>
  <input type="submit" value="Submit">

Open link in new window

<a> - HTML | MDN

<a href="https://developer.mozilla.org/en-US/" target="_blank">
  <img src="https://mdn.mozillademos.org/files/6851/mdn_logo.png" alt="MDN logo" />

What to use when specifying an empty link


Use href="#", make sure onclick always contains return false; at the end, that any called function does not throw an error and if you attach a function dynamically to the onclick property make sure that as well as not throwing an error it returns false.


Use href="javascript:void(0)"

The second is clearly easier to communicated.

Styling input type=file field

Many relevant links: