HTML5还引入了让用户输入邮箱地址和URL的输入控件。那些不支持这类输入控件的浏览器会把他们当成普通文本框来处理。
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div>TODO write content</div>
<form action="http://www.example.org/subscribe.[hp">
<p>邮箱地址:</p>
<input type="email" name="email" />
<input type="submit" value="Submit"
</form>
</body>
</html>