6

Are these kind of errors valid and how can I resolve. Doesn't HTML5 allow this code?

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

Validation: (HTML5) - the values permitted for this attribute do not include 'disabled'

3 Answers 3

2

Check Web Standards Update for Microsoft Visual Studio 2010 SP1 that improves html5/css3 validation and intellisense support.

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

Comments

1

I also had to change my Text-Editor preferences to get VS to recognize the HTML5 controls (for others that arrive here via Google like me).

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

Comments

0

disabled is a valid html5 property for button. However, you should always specify type on buttons, as different browsers use different defaults. Validation may be reporting that omission in a roundabout way.

1 Comment

I added type but syntax highlighting still complains.

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.