"How to enable and tags in all major browsers
To make HTML5 video and audio tags work in all major browsers, simply add the following line of code somewhere in the of your document.
"
Browsers that support HTML5 form validation have one thing in common; if a <form> is submitted and has errors on multiple fields, the browser will only display the first error to the user.
instead of listening for submit on the <form>, I instead listen for a click on the <input type="submit">. Since the user is also able to submit the form pressing enter in text inputs, I attach a keypress listener to them to ensure the same logic runs.
One element can also have multiple properties (multiple itemprop="" names separated by spaces) with the same value:
<p itemscope><span itemprop="guitar vocals">Chris Askew</span> is so dreamy.</p>
One element can also have multiple properties (multiple itemprop="" names separated by spaces) with the same value:
<p itemscope><span itemprop="guitar vocals">Chris Askew</span> is so dreamy.</p>
One element can also have multiple properties (multiple itemprop="" names separated by spaces) with the same value:
<p itemscope><span itemprop="guitar vocals">Chris Askew</span> is so dreamy.</p>
Besides the data- prefix, the name of a valid custom data attribute must contain only letters, numbers, hyphen (-), dot (.), colon (:) or underscore (_). It cannot contain capital letters.
I recommend you use this method for quick prototypes rather than a production website, not least because CSS-only tooltips are not fully accessible.
"The list attribute / datalist element of HTML5 forms is pretty cool. As you type in a text input, it shows you a dropdown menu of choices you can pick from. Or you can type in whatever you want. The list attribute alone doesn't lock you into any specific value. In that way, it's a bit like a group of radio buttons with an "other" type-in option."
\"', 'tags':'html,video,audio,tags,browsers,html5,mobile',
'first_user_id':1615481, 'first_user_name':'vfowler', 'first_user_real_name':'Vernon Fowler', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':1, 'p_c_count':1, 'ann_count':0, 'i_c_count':0, 'page_comments':[],'annotations':[]}
var p_c = {'id':1599877, 'group_id':106643, 'link_id':82697916, 'g_l_id':'106643-82697916', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'content':'\"How to enable \<video\> and \<audio\> tags in all major browsers\\n\\nTo make HTML5 video and audio tags work in all major browsers, simply add the following line of code somewhere in the \<head\> of your document.\\n\<script src=\"http://api.html5media.info/1.1.4/html5media.min.js\"\>\</script\>\"'}
b.page_comments.push(p_c)
_items.push(b);
var b = {'item_id':3234995, 'obj_type':1, 'obj_id':38956918, 'index':3, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':38956918, 'g_l_id':'106643-38956918', 'url':'http://html5-showcase.com', 'title':'HTML5 Showcase | A gallery of the best html5 sites in the world.', 'desc':'', 'tags':'html5,inspiration,showcase,webdesign,design,html',
'first_user_id':1615481, 'first_user_name':'vfowler', 'first_user_real_name':'Vernon Fowler', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':1, 'p_c_count':0, 'ann_count':0, 'i_c_count':0, 'page_comments':[],'annotations':[]}
_items.push(b);
var b = {'item_id':16947805, 'obj_type':1, 'obj_id':447683921, 'index':4, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':447683921, 'g_l_id':'106643-447683921', 'url':'https://www.tjvantoll.com/2012/08/05/html5-form-validation-showing-all-error-messages/', 'title':'HTML5 Form Validation - Showing All Error Messages', 'desc':'', 'tags':'forms,usability,errors,validation,HTML5',
'first_user_id':1615481, 'first_user_name':'vfowler', 'first_user_real_name':'Vernon Fowler', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':1, 'p_c_count':0, 'ann_count':9, 'i_c_count':0, 'page_comments':[],'annotations':[]}
var ann = {'id':5344636, 'content':'', 'group_id':106643, 'link_id':447683921, 'g_l_id':'106643-447683921', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
var ann = {'id':5344637, 'content':'', 'group_id':106643, 'link_id':447683921, 'g_l_id':'106643-447683921', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
var ann = {'id':5344639, 'content':'', 'group_id':106643, 'link_id':447683921, 'g_l_id':'106643-447683921', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
var ann = {'id':5344638, 'content':'', 'group_id':106643, 'link_id':447683921, 'g_l_id':'106643-447683921', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
var ann = {'id':5344643, 'content':'', 'group_id':106643, 'link_id':447683921, 'g_l_id':'106643-447683921', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
var ann = {'id':5344641, 'content':'', 'group_id':106643, 'link_id':447683921, 'g_l_id':'106643-447683921', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
var ann = {'id':5344642, 'content':'', 'group_id':106643, 'link_id':447683921, 'g_l_id':'106643-447683921', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
var ann = {'id':5344640, 'content':'', 'group_id':106643, 'link_id':447683921, 'g_l_id':'106643-447683921', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
var ann = {'id':5363236, 'content':'', 'group_id':106643, 'link_id':447683921, 'g_l_id':'106643-447683921', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
_items.push(b);
var b = {'item_id':7602428, 'obj_type':1, 'obj_id':123038833, 'index':5, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':123038833, 'g_l_id':'106643-123038833', 'url':'http://html5doctor.com/microdata/', 'title':'Extending HTML5 - Microdata | HTML5 Doctor', 'desc':'', 'tags':'webdesign,microdata,NED12,web design,HTML5',
'first_user_id':1615481, 'first_user_name':'vfowler', 'first_user_real_name':'Vernon Fowler', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':1, 'p_c_count':0, 'ann_count':3, 'i_c_count':0, 'page_comments':[],'annotations':[]}
var ann = {'id':2305229, 'content':'', 'group_id':106643, 'link_id':123038833, 'g_l_id':'106643-123038833', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
var ann = {'id':2305230, 'content':'', 'group_id':106643, 'link_id':123038833, 'g_l_id':'106643-123038833', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
var ann = {'id':2305231, 'content':'', 'group_id':106643, 'link_id':123038833, 'g_l_id':'106643-123038833', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
_items.push(b);
var b = {'item_id':8837678, 'obj_type':1, 'obj_id':128843566, 'index':6, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':128843566, 'g_l_id':'106643-128843566', 'url':'http://net.tutsplus.com/tutorials/html-css-techniques/html5-microdata-welcome-to-the-machine/', 'title':'HTML5 Microdata: Welcome to the Machine | Nettuts+', 'desc':'', 'tags':'rdfa,microformats,microdata,metadata,LIM225,markup,HTML5',
'first_user_id':1615481, 'first_user_name':'vfowler', 'first_user_real_name':'Vernon Fowler', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':1, 'p_c_count':0, 'ann_count':0, 'i_c_count':0, 'page_comments':[],'annotations':[]}
_items.push(b);
var b = {'item_id':9168112, 'obj_type':1, 'obj_id':121248857, 'index':7, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':121248857, 'g_l_id':'106643-121248857', 'url':'http://www.w3.org/TR/html5-diff/', 'title':'HTML5 differences from HTML4', 'desc':'', 'tags':'html,html5,markup,syntax,elements',
'first_user_id':1615481, 'first_user_name':'vfowler', 'first_user_real_name':'Vernon Fowler', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':1, 'p_c_count':0, 'ann_count':1, 'i_c_count':0, 'page_comments':[],'annotations':[]}
var ann = {'id':2622867, 'content':'', 'group_id':106643, 'link_id':121248857, 'g_l_id':'106643-121248857', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
_items.push(b);
var b = {'item_id':12389763, 'obj_type':1, 'obj_id':167985590, 'index':8, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':167985590, 'g_l_id':'106643-167985590', 'url':'https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/HTML5_element_list', 'title':'HTML5 element list - Web developer guide | MDN', 'desc':'', 'tags':'html5,elements,html,reference,list,webdesign,DIG252',
'first_user_id':1615481, 'first_user_name':'vfowler', 'first_user_real_name':'Vernon Fowler', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':1, 'p_c_count':0, 'ann_count':0, 'i_c_count':0, 'page_comments':[],'annotations':[]}
_items.push(b);
var b = {'item_id':16003234, 'obj_type':1, 'obj_id':388317164, 'index':9, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':388317164, 'g_l_id':'106643-388317164', 'url':'https://www.sitepoint.com/how-why-use-html5-custom-data-attributes/', 'title':'How You Can Use HTML5 Custom Data Attributes and Why - SitePoint', 'desc':'', 'tags':'html,custom,data,css,HTML5,Javascript',
'first_user_id':1615481, 'first_user_name':'vfowler', 'first_user_real_name':'Vernon Fowler', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':1, 'p_c_count':0, 'ann_count':2, 'i_c_count':0, 'page_comments':[],'annotations':[]}
var ann = {'id':4926184, 'content':'', 'group_id':106643, 'link_id':388317164, 'g_l_id':'106643-388317164', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
var ann = {'id':4926187, 'content':'', 'group_id':106643, 'link_id':388317164, 'g_l_id':'106643-388317164', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'c_count':0, 'inline_comments':[]};
b.annotations.push(ann);
_items.push(b);
var b = {'item_id':5693516, 'obj_type':1, 'obj_id':75468738, 'index':10, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':75468738, 'g_l_id':'106643-75468738', 'url':'http://www.w3schools.com/html5/att_input_type.asp', 'title':'HTML5 input type Attribute', 'desc':'', 'tags':'html,html5,form,input,type',
'first_user_id':1615481, 'first_user_name':'vfowler', 'first_user_real_name':'Vernon Fowler', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':1, 'p_c_count':0, 'ann_count':0, 'i_c_count':0, 'page_comments':[],'annotations':[]}
_items.push(b);
var b = {'item_id':5705249, 'obj_type':1, 'obj_id':124378688, 'index':11, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':124378688, 'g_l_id':'106643-124378688', 'url':'http://wpmu.org/10-beautiful-html5-video-audio-players-for-wordpress/', 'title':'Wordpress Video & Audio Players: 10 Beautiful HTML5 Examples', 'desc':'', 'tags':'wordpress,html5,video,audio,plugins',
'first_user_id':1615481, 'first_user_name':'vfowler', 'first_user_real_name':'Vernon Fowler', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':1, 'p_c_count':0, 'ann_count':0, 'i_c_count':0, 'page_comments':[],'annotations':[]}
_items.push(b);
var b = {'item_id':4006104, 'obj_type':1, 'obj_id':32592941, 'index':12, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':32592941, 'g_l_id':'106643-32592941', 'url':'http://caniuse.com', 'title':'When can I use... Support tables for HTML5, CSS3, etc', 'desc':'Compatibility tables for support of HTML5, CSS3, SVG and more in desktop and mobile browsers.', 'tags':'HTML5,CSS3,compatibility,browser,js,css,reference,html,mobile',
'first_user_id':1412727, 'first_user_name':'osensus', 'first_user_real_name':'Alfred Waizenauer', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':2, 'p_c_count':0, 'ann_count':0, 'i_c_count':0, 'page_comments':[],'annotations':[]}
_items.push(b);
var b = {'item_id':4099921, 'obj_type':1, 'obj_id':81687747, 'index':13, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':81687747, 'g_l_id':'106643-81687747', 'url':'http://www.w3schools.com/html5/tag_iframe.asp', 'title':'HTML5 iframe Tag', 'desc':'Be wary of any plugins that create iframe elements. If they use invalid attributes, the iframe won\'t render in Internet Explorer (IE).', 'tags':'iframe,HTML5,attributes,support,browser,rendering,Internet Explorer,IE',
'first_user_id':1615481, 'first_user_name':'vfowler', 'first_user_real_name':'Vernon Fowler', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':1, 'p_c_count':1, 'ann_count':0, 'i_c_count':0, 'page_comments':[],'annotations':[]}
var p_c = {'id':2153192, 'group_id':106643, 'link_id':81687747, 'g_l_id':'106643-81687747', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'content':'Be wary of any plugins that create iframe elements. If they use invalid attributes, the iframe won\'t render in Internet Explorer (IE).'}
b.page_comments.push(p_c)
_items.push(b);
var b = {'item_id':4106812, 'obj_type':1, 'obj_id':84588995, 'index':14, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':84588995, 'g_l_id':'106643-84588995', 'url':'http://tutslist.com/65-useful-html5-tutorials', 'title':'65 Useful HTML5 Tutorials | TutsList', 'desc':'', 'tags':'HTML5,tutorials,webdesign,CSS3',
'first_user_id':1615481, 'first_user_name':'vfowler', 'first_user_real_name':'Vernon Fowler', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':1, 'p_c_count':0, 'ann_count':0, 'i_c_count':0, 'page_comments':[],'annotations':[]}
_items.push(b);
var b = {'item_id':11499663, 'obj_type':1, 'obj_id':195230067, 'index':15, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':195230067, 'g_l_id':'106643-195230067', 'url':'http://css-tricks.com/relevant-dropdowns-polyfill-for-datalist/', 'title':'Relevant Dropdowns: Polyfill for Datalist | CSS-Tricks', 'desc':'\"The list attribute / datalist element of HTML5 forms is pretty cool. As you type in a text input, it shows you a dropdown menu of choices you can pick from. Or you can type in whatever you want. The list attribute alone doesn\'t lock you into any specific value. In that way, it\'s a bit like a group of radio buttons with an \"other\" type-in option.\"', 'tags':'HTML5,forms,input,datalist',
'first_user_id':1615481, 'first_user_name':'vfowler', 'first_user_real_name':'Vernon Fowler', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':1, 'p_c_count':1, 'ann_count':0, 'i_c_count':0, 'page_comments':[],'annotations':[]}
var p_c = {'id':4404992, 'group_id':106643, 'link_id':195230067, 'g_l_id':'106643-195230067', 'user_id':1615481, 'user_name':'vfowler', 'user_real_name':'Vernon Fowler', 'content':'\"The list attribute / datalist element of HTML5 forms is pretty cool. As you type in a text input, it shows you a dropdown menu of choices you can pick from. Or you can type in whatever you want. The list attribute alone doesn\'t lock you into any specific value. In that way, it\'s a bit like a group of radio buttons with an \"other\" type-in option.\"'}
b.page_comments.push(p_c)
_items.push(b);
var b = {'item_id':11683859, 'obj_type':1, 'obj_id':199009623, 'index':16, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':199009623, 'g_l_id':'106643-199009623', 'url':'http://readwrite.com/2014/02/06/html5-apple-ios-android-developers?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+readwriteweb+(ReadWriteWeb)#awesm=~ovyBiuuuGJ0acS', 'title':'HTML5 Catches Up To Apple - ReadWrite', 'desc':'', 'tags':'html5,ios,android',
'first_user_id':1412727, 'first_user_name':'osensus', 'first_user_real_name':'Alfred Waizenauer', 'last_user_id':1412727, 'last_user_name':'osensus', 'last_user_real_name':'Alfred Waizenauer',
'user_count':1, 'p_c_count':0, 'ann_count':0, 'i_c_count':0, 'page_comments':[],'annotations':[]}
_items.push(b);
var b = {'item_id':1991044, 'obj_type':1, 'obj_id':42499741, 'index':17, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':42499741, 'g_l_id':'106643-42499741', 'url':'http://www.freewebgallerys.com/2010/07/04/html5-css3-application-framework-widgets-toolkit-%E2%80%93-alloy-ui', 'title':'HTML5 CSS3 Application Framework & Widgets Toolkit - Alloy UI - www.freewebgallerys.com', 'desc':'', 'tags':'html5,framework,css3,javascript',
'first_user_id':1412727, 'first_user_name':'osensus', 'first_user_real_name':'Alfred Waizenauer', 'last_user_id':1412727, 'last_user_name':'osensus', 'last_user_real_name':'Alfred Waizenauer',
'user_count':1, 'p_c_count':0, 'ann_count':0, 'i_c_count':0, 'page_comments':[],'annotations':[]}
_items.push(b);
var b = {'item_id':3130632, 'obj_type':1, 'obj_id':26609355, 'index':18, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':26609355, 'g_l_id':'106643-26609355', 'url':'http://net.tutsplus.com/tutorials/html-css-techniques/how-to-make-all-browsers-render-html5-mark-up-correctly-even-ie6', 'title':'How to Make All Browsers Render HTML5 Mark-up Correctly - Even IE6 | Nettuts+', 'desc':'', 'tags':'html5,css,javascript,html,webdesign,ie6,browser,tutorial,Website',
'first_user_id':1615481, 'first_user_name':'vfowler', 'first_user_real_name':'Vernon Fowler', 'last_user_id':1615481, 'last_user_name':'vfowler', 'last_user_real_name':'Vernon Fowler',
'user_count':1, 'p_c_count':0, 'ann_count':0, 'i_c_count':0, 'page_comments':[],'annotations':[]}
_items.push(b);
var b = {'item_id':3123034, 'obj_type':1, 'obj_id':38106503, 'index':19, 'checked':false,
'group_id':106643, 'g_name':'html5_dev', 'link_id':38106503, 'g_l_id':'106643-38106503', 'url':'http://www.williammalone.com/articles/create-html5-canvas-javascript-drawing-app', 'title':'Create a Drawing App with HTML5 Canvas and JavaScript { William Malone }', 'desc':'', 'tags':'canvas,html5,javascript,tutorial',
'first_user_id':1412727, 'first_user_name':'osensus', 'first_user_real_name':'Alfred Waizenauer', 'last_user_id':1412727, 'last_user_name':'osensus', 'last_user_real_name':'Alfred Waizenauer',
'user_count':1, 'p_c_count':0, 'ann_count':0, 'i_c_count':0, 'page_comments':[],'annotations':[]}
_items.push(b);
window.addOnLoadListener(function(){new ContextMenu("leftColumn",{eventType:"click",backgroundColor:'#E0EDFE',color:'#000'})});
window.addOnLoadListener(function(){new AvatarPopup()});