HTML5xuexi

Posted 编程研究学社

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HTML5xuexi相关的知识,希望对你有一定的参考价值。

output元素
    用于表单内各种类型的输入。可以监听forminput事件,forminput事件用于监听表单内的输入,每当输入结束时触发。

<!DOCTYPE html><html> <body> </form> <label for=" age ">年龄:</label> <input type="range" name="age" min ="1" max="100" step="1"/> <output onforminput="this.value=age.value">50</output> </form> </body></html>


建议使用Chrome进行测试

novalidate属性
  可以作用于form和input属性,表示该元素区域不进行表单验证,在进行提交时会验证类型为URL,telephone,email,date的元素:

<!DOCTYPE HTML><html> <body> <form method="get"> 网址:<input type="url" name="user_mail"/> <input type="submit"/> </form> </body></html>

以上是关于HTML5xuexi的主要内容,如果未能解决你的问题,请参考以下文章