I keep getting HTML5 syntax errors with MVC3

Are these errors valid and how can I solve. Does HTML5 not allow this code?

<button title="" disabled="disabled" >&gt;&gt;</button> 

Validation: (HTML5) - the values ​​allowed for this attribute do not include "disabled"

+6
source share
3 answers

Check the Web Standards Update for Microsoft Visual Studio 2010 Service Pack 1 (SP1) , which improves html5 / css3 validation and intellisense support.

+2
source

I also had to change the Text-Editor settings to make VS recognize HTML5 controls (for others that come here via Google, like me).

In VS, go to Tools> Options and select TextEditor / HTML / Validation in the left pane, then select HTML5.

+1
source

disabled is a valid html5 property for button . However, you should always specify type buttons on buttons, as different browsers use different default values. Validation can report this pass in a roundabout way.

0
source

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


All Articles