英文解释:
html:超文本标记
head:头部
meta:元信息
charset:字符集
title:标题
body:文档主体
action:提交到的服务器地址
method:提交方式,get或post
input:输入框
type:指定输入内容的类型;默认text,单行文本框。
submit:提交
img:图片
button:普通按钮,没有样式
reset:重置
演示代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<form action="https://www.baidu.com" method="get">
<input type="text" name="btn" />
<input type="submit" />
<input type="reset" />
<input type="button" value="普通" />
<button type="submit">普通提交</button>
<button type="reset">普通重置</button>
<button type="button"><img src="btn.png" width="50px" height="25px" ></button>
</form>
</body>
</html>