Search notes:

HTML element: button

Compare with input elements

Buttons can also be created with <input type="button"> and <input type="submit">:
<!DOCTYPE html>
<html>
<head>
  <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
  <title>&lt;button&gt; vs &lt;input type="submit"&gt; and &lt;input type="button"&gt;</title>
</head>
<body>

  <button>&lt;button&gt;</button>
  <p>
  <input  type='submit' value='&lt;input type="submit"&gt;' />
  <p>
  <input  type='button' value='&lt;input type="button"&gt;' />

</body>
</html>
Github repository about-html, path: /tags/button/vs-input-submit_input-button.html

See also

Dynamic creation of a button with an onclick handler.
HTML elements

Index