HTML Page Structure

HTML Elements
HTML Attributes


HTML Submit Tag

With the use of a HTML Submit Tag, the form input is sent to the address mentioned in the action attribute of the <form> tag.

Syntax

<form>
	<input type="submit" value="submit">
</form>

Example

<!DOCTYPE html>
<html>
<head>
<title>My HTML Submit Input Tag Example</title>
</head>
<body>
<form>
      What is your favourite color?
      <p>
        <input type="radio" name = "color" value="r"/>Red
     </p>
      <p>
        <input type="radio" name = "color" value="y" checked/>Yellow
      </p>
	  <p>
        <input type="radio" name = "color" value="g"/>Green
      </p>
	  <p>
        <input type=submit value="Submit"/>
      </p>
</form>
</body>
</html>

This will produce following result

What is your favourite color?

Red

Yellow

Green