定义标记按钮
- <button></button> —— 定义标记按钮
○ 在实际开发过程中表单提交一般仍然使用表单中对应的按钮
比较表单中的按钮与 button 有什么不同
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>网页标题</title>
</head>
<body>
<form action="https:www.baidu.com" method="post">
<p>
<input type="submit" />
<input type="reset" />
</p>
</form>
<button type="submit">提交</button>
<button type="reset">重置</button>
</body>
</html>