How to make Visual Studio Handle HTML 5 Tags without warning

后端 未结 2 1857
我在风中等你
我在风中等你 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:

    <!DOCTYPE html>
    <html>
    
    0 讨论(0)
  • 2021-02-12 10:23

    In VS2012 will be enough do uncheck 'Use doctype for validation schema detection'.

    enter image description here

    0 讨论(0)
提交回复
热议问题