Coding Tips & Tricks


Home > HTML5

Asp.net MVC HTML5 Toolkit - Latest Updates

HTML5 has some fantastic features available to us, and I've tried to add as many of those features as I can to this toolkit. For more information on some of the features available to HTML5 form fields, please take a look at this article.

HTML5

I've added quite a few updates to the latest release of the ASP.net HTML5 Toolkit. If you haven't worked with the MVC Html5 toolkit before, please take a look at the following post.

Video & Audio

Support has been added for Audio and Video. In order to start using the video control, you simply call it the way you would call a normal textbox - with a slight twist!

HTML5 Video

With the video control you will be able to add the controls attribute and the autoplay attribute to your video. Once the control has rendered, it will look something like this:

The Audio control is quite similar

HTML5 Audio

When the control renders, it will look something like this:

HTML5 Audio Control

Autofocus, Readonly and Disabled

You can now add the following HTML5 features to your input fields.

The library is still tiny and is only 10 kb, so it is super lightweight and efficient. The Nuget package has also been updated and is available for download

Hope you enjoy!








Comments

Candice - 6/14/2011
Hi, Do you have any plans to extend this to use semantically correct syntax such as no closing tags on inputs and 'required' instead of 'required="required"'? Thanks

Dean Hume - 6/14/2011
@Candice Yeah, the plan is to update this to handle certain instances where only the attribute is needed instead of 'required="required"'. I am hoping to get this done soon. Please shout if there are any other suggestions you would like added to the tool. Thanks Dean

Candice - 6/14/2011
Ah excellent. Those are the 2 items I need on my current implementation. Don't wish to pester but do you have a timescale for that update? Many Thanks!


Add your comment

300 Characters left


Please fill this in to confirm that you are human