案例:html/html5 案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE HTML>
2
<html>
3
<body>
4
5
<form action="/example/demo_form.aspx" method="get">
6
国家代码:<input type="text" name="fname" pattern="[A-z]{3}"
7
title="三个字母的国家代码" />
8
<input type="submit" />
9
</form>
10
11
</body>
12
</html>