4

For now, I just want to use the <audio> and <video> tags and maybe try out the drag and drop features since these are supported by Firefox 3.6. The project will just be a test project, not necessarily for production.

5 Answers 5

7

The big idea behind ASP.NET MVC is that you have total control over the generated HTML, so you just need to use the tags as you wish, no additional work required.

Sign up to request clarification or add additional context in comments.

Comments

1

I wanted a bit more control over the inputs and the ability to use postback on the controls, so I built a suite of HTML 5 Controls. It's got canvas and just about all of the new input types. As was said earlier, one big limitation is the browser your user brings to the site. The inputs will fail gracefully to Input Type="text".

Comments

0

Change the DOCTYPE on your master page to

<!DOCTYPE html>

and ignore any validation errors you get. I think you'll be ok.

3 Comments

When do you ever not ignore the validation errors thrown up by the HTML editor in VS?
I don't ignore them all, but I grant that there a lot that do get ignored. In fact, I can remove most all of them with a judicious use of `<% if (false) { %>...include CSS links...<% } %> in my partials if I really care.
Found a HTML5 validation schema for VS 2008 which should eliminate most of the errors. stackoverflow.com/questions/1084194/… (first answer)
0

Absolutely. You can output whatever HTML you'd like.

The HtmlHelpers may not output your desired HTML but its not that hard to change them.

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.