Articles → HTML → Buttons in HTML

Buttons in HTML






What is a button control?









Type of buttons











Button








<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta charset="utf-8" />
	<title></title>
</head>

<body>
	<form method="get" action="Page1.html">
		<button>Button Example</button>
	</form>
</body>

</html>





Click to Enlarge


Submit




<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta charset="utf-8" />
	<title></title>
</head>

<body>
	<form method="get" action="Page1.html">
		<input type="submit" value="Submit Example" /> </form>
</body>

</html>





Click to Enlarge




Reset




<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta charset="utf-8" />
	<title></title>
</head>

<body>
	<form method="get" action="Page1.html">
		<input type="text" />
		<input type="reset" value="Reset Example" /> </form>
</body>

</html>





Click to Enlarge




Browser support


Internet ExplorerFirefoxChromeSafariOperaEdge
YesYesYesYesYesYes



Posted By  -  Karan Gupta
 
Posted On  -  Friday, December 16, 2016
 
Updated On  -  Sunday, December 03, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250