H5C3表单新增属性

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<form action="">
		<!-- placeholder为提示信息,
		autofocus为自动获取焦点
		 autocomplete为记忆
		 1.必须成功提交过
		 2.当前添加autoplete的元素必须有name属性-->
			用户名:<input type="text" name="username" placeholder="请输入用户名" 
			autofocus="autofocus" autocomplete="on"><br>
			密码:<input type="password" name="userpwd"><br>
			<!-- 给默认的验证方式,验证邮箱的完整性 -->
			<!-- multiple在email中允许输入多个邮箱地址,用逗号分隔 -->
			邮箱:<input type="email" name="useremail" multiple="multiple"/><br>
			<!-- tel并不是来实现验证的,他的本质目的是为了能够在移动端打开数字键盘,意味着数字键盘限制了用户只能输入数字。 -->
			电话:<input type="tel" required="required" pattern="^(\+86)?1\d{10}$"><br><!-- 必需输入/正则表达式的验证 -->
			<!-- 验证网址完整 -->
			网址:<input type="url"><br>
			<!-- 验证数量,不能输入字符等
			 max最大值
			 min最小值
			 value默认值-->
			 
			 地址:<input type="" name="" id="" value="" />
			 
			<!--multiple为可选择多文件 -->
			文件:<input type="file" name="photo" id="" value="" multiple="multiple"/>
			数量:<input type="number"><br>
			<!-- 可以使用自带删除内容 -->
			商品名称:<input type="search"><br>
			<!-- 范围 -->
			范围:<input type="range" max="100" min="0" value="0"><br>
			<!-- 颜色选取 -->
			颜色:<input type="color" name="" id="" value="" /><br>
			<!-- 日期时间相关 -->
			时间:<input type="time" name="" id="" value="" />
			<input type="submit">
			月份:<input type="month">
			星期:<input type="week" name="" id="" value="" />
		</form>
	</body>
</html>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值