Can I use HTML5 in an ASP.NET MVC project in Visual Studio 2010?

Currently, I just want to use the <audio> and <video> tags, and maybe try using the drag and drop functions, as they are supported by Firefox 3.6. The project will be just a test project, not necessarily for production.

+4
source share
5 answers

The big idea with ASP.NET MVC is that you have full control over the generated HTML, so you just need to use tags as you see fit, without the need for extra work.

+7
source

I wanted a bit more control over the input and the ability to use postback for controls, so I built a set of HTML 5 Controls . He got a canvas and almost all new input types. As mentioned earlier, one of the biggest limitations is the browser that your user brings to the site. Inputs will gracefully tolerate input type = "text".

+1
source

Change DOCTYPE on the main page to

 <!DOCTYPE html> 

and ignore any validation errors you receive. I think everything will be all right with you.

0
source

That's right. You can output any HTML code you want.

HtmlHelpers may not display the desired HTML, but it is not so difficult to change.

0
source

Yes, just change the doctype. but the question is, do your users have a browser that supports HTML5?

0
source

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


All Articles