Skip to content Skip to sidebar Skip to footer

Change Doctype In Asp.net

I have tried to change the doctype from XHTML 1.0 to HTML5 doctype, by changing the doctype line in Site.Master.cs. However after the change HTML5 tags is still not recognized in V

Solution 1:

Right click on the tool bar at the top and enable the 'HTML Source Editing' tool bar.

You should then be able to select the target schema for validation from the drop down.

enter image description here

NOTE: Ensure you are viewing the aspx page, the drop down is greyed out otherwsie

Solution 2:

Here is an alternative solution that will work regardless of which type of page you're viewing:

Tools --> Options... --> Text Editor --> HTML --> Validation

Select the "Target:" from the dropdown that you'd like to use for validation.

Post a Comment for "Change Doctype In Asp.net"