1 input type中的required属性,支持正则表达式,比如
<input type="text" title="email" required pattern="[^@]+@[^@]+\.[a-zA-Z]{2,6}" />
<input title="at least eight symbols containing at least one number, one lower, and one upper letter" type="text" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}" required /
2 同时支持HTML 5的vidio,也支持flash
<video width="640" height="360" controls>
<source src="__VIDEO__.MP4" type="video/mp4" />
<source src="__VIDEO__.OGV" type="video/ogg" />
<object width="640" height="360" type="application/x-shockwave-flash" data="__FLASH__.SWF">
<param name="movie" value="__FLASH__.SWF" />
<param name="flashvars" value="controlbar=over&image=__POSTER__.JPG&file=__VIDEO__.MP4" />
<img src="__VIDEO__.JPG" width="640" height="360" alt="__TITLE__"
title="No video playback capabilities, please download the video below" />
</object>
</video>
分享到:
相关推荐
Tips隐私政策.html
html-tips-tricks HTML5并不是新事物。自初始版本(2014年10月)以来,我们一直在使用它的多个功能。作为#100DaysOfCode计划的一部分,我花了一些时间再次访问功能列表。看到我发现了什么?我还没有真正使用过它!在...
3种形式tips帮助提示框代码,鼠标悬停在问号上,出现提示框。提示框有纯文字,html代码,图片三种形式。兼容主流浏览器
Get an overview of HTML5, JavaScript, and mobile web frameworks Discover tips for iOS usability as well as performance Dig into features like images, animation, and even geolocation
之前的一直有关注一些HTML 5中的值得关注但少用的API或者tips,这次继续小结一些,有需要的朋友可以参考下,希望可以帮助你们
This new edition provides you with critical coverage of these three Web authoring standards, and places special focus on the upcoming releases of HTML 5 and CSS 3. Serving as a tutorial and ...
JS实现简单实用的自动动态tips提示信息框(小的气泡框)效果
强大的html5 1 About HTML5 2 Changes to Existing Components 3 New Elements in HTML5 4 Attribute Changes 5 HTML Event Handling 6 Hot Tips and more...
HTML5和CSS3制作的展示类页面,使用了HTML5及CSS3的新标签和特性,页面图文并茂。兼容IE9+、Chrome、Firefox等主流浏览器;页面兼容不同分辨率的屏幕。包含一个html文件,四个css文件,一个js文件及若干图片。由于...
Tips-HTML
HTML5 Game Development Insights is a from-the-trenches collection of tips, tricks, hacks, and advice straight from professional HTML5 game developers. The 24 chapters here include unique, cutting edge...
纯CSS实现tips帮助提示框代码,鼠标悬停在问号上,出现提示框。提示框有纯文字,html代码,图片三种形式。
The HTML5 Programmer’s Reference aims to provide everything a programmer needs for understanding and using the new HTML5 family of standards. Previous HTML standards were focused on defining tags for...
A step-by-step practical introduction to HTML5 through the building of a real-world application, including common development practices Overview Learn the most useful HTML5 features by developing a ...
Thoroughly updated and revised, HTML: A Beginners Guide, Fifth Edition shows you, step by step, how to create dynamic websites with HTML. The book covers new HTML5 features, including video, audio, ...
TIPS • HTML文件就是一个文本文件 文本文件的后缀名是 txt,而HTML的后缀名是 html • <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1 0 Strict//EN" " http://www w3 org/TR/xhtml1/DTD/xhtml1-strict dtd ">代表...
HTML5 for .NET Developers teaches professional software engineers how to integrate the latest HTML5 APIs and semantic markup into rich web applications using JavaScript, ASP.NET MVC, and WCF....
for them—depending on the recipe—we do discuss the support for each of the individualelements and implementations covered throughout this book (for tips on finding out what browsers currently ...
3种提示效果:纯文本、HTML代码和图片,扁平式效果,方便简洁。