dotNET
dotNET

Reputation: 35400

ASP.NET controls and HTML5

Why do built-in ASP.NET controls generate HTML that VS2010 tells me is not HTML5 compatible? Is there a way around it?

Example: Drop a PasswordRecovery control onto your page and ask it to convert the UserName (or Question or Answer) view into a template. The generated HTML contains attributes like cellpadding and cellspacing and VS2010 underlines them with the warning: Attribute 'cellspacing' is not a valid attribute of element 'table'.

N.B. You have to set Target Schema to HTML5 to see these warnings.

Upvotes: 1

Views: 686

Answers (1)

Gopesh Sharma
Gopesh Sharma

Reputation: 7030

At first you should install Web Standards Update And then change the XHTML 1.0 transitional opening incantation to HTML 5 i.e.

<!DOCTYPE html>
<html>

Upvotes: 1

Related Questions