Core HTML

Form - Button

This form example demonstrates how to code a form with a button tag in it.

ButtonForm.html

<!DOCTYPE html>
<html>
  <head>
    <title>XoaX.net's HTML: Form - Button Tag Example</title>
  </head>
  <body>
    <form>
      <button type="button" onclick="alert('There Was Light!')"
        name="LightButton">Let There Be Light!</button>
    </form>
  </body>
</html>
 

Output

 
 

© 2007–2024 XoaX.net LLC. All rights reserved.