How to make Visual Studio Handle HTML 5 Tags without warning

后端 未结 2 1856
我在风中等你
我在风中等你 2021-02-12 09:52

I have various html tags (related to jquery mobile) that Visual Studio is flagging as not valid attributes: For exmaple:

2条回答
  •  青春惊慌失措
    2021-02-12 10:17

    You should install the Web Standards Update and then switch to HTML5 as your default schema:

    The settings dialog for changing your default schema

    In addition, you should not use the XHTML 1.0 transitional opening incantation when using HTML 5 attributes. Instead, use the usual HTML5 one:

    
    
    

提交回复
热议问题