ASP.NET MVC and HTML5

I am learning HTML5 and I am very happy to try it. As a framework, I would like to use ASP.NET MVC, but I'm not sure how this works with HTML5.

Are there (I know there are, but are not sure they are good) any good HTML5 tools for ASP.NET MVC? Basically, I would like some pointers on where to start by creating a page with rich HTML5 controls using MVC + some pros and cons from your experience.

In any case, I’m ready to give up PHP and start with MVC if HTML support is there ... I have C # skills and I understand the MVC pattern.

Best regards, No. 9.

+6
source share
2 answers

MVC and HTML 5 actually have nothing to do with each other, so you can use any framework you want, and that's all about the program.

And Visual Studio 2012 supports HTML 5, you must install the extension for VS called Web Essentials 2012 "for better support for HTML 5.

For a good launch, you can also check the html5boilerplate .

Hope this helps you get started.

+12
source

I wrote an HTML5 toolkit for ASP.NET MVC that you simply add to your project that will provide you with the necessary functionality.

Once you have added the library to your project, you can use it in your view like this:

@Html.Html5TextBox("txtOne", InputType.Color) 

This will return a text box element that looks like this:

 <input type="color" id="txtOne" name="txtOne"> 

There is a lot of support for many other HTML5 input types - check out the post for more information.

+4
source

Source: https://habr.com/ru/post/945558/


All Articles