Raihan Iqbal
Life is codetastic!

HTML5 Support In Visual Studio 2010

I was trying to play around with HTML5 assuming that VS 2010 had shipped with HTML5 support but to my dismay it was not the case. Bummer! So I did a bit of homework and came up with an easy workaround. If you try googling for html5 visual studio 2010, the first link that you will see is HTML 5 Intellisense for Visual Studio 2010 and 2008. But unfortunately, the patch provided over there doesn’t seem to work. (DO I HAVE TO DO EVERYTHING!!)

So here’s how I got it to work.

  1. Download this archive and extract the contents to your desktop.
  2. Copy/Move html_5.xsd to D:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\schemas\html. The path may vary depending on where you installed VS 2010 or Visual Web Developer 2010. vs2010folder
  3. From the extracted contents, run the appropriate registry file. In my case, it was VS-2010-x64.reg
  4. Now fire up Visual Studio 2010 (or VWD) and navigate to Tools > Options > Text Editor HTML > Validation. On the right panel, select HTML 5 as the Target. vs2010ValOption
  5. Now restart VS 2010 and you should be able to code valid HTML5. Enjoy! vs2010html5demo
Share

Posted in .net, Tools, visual studio | 56,479 views | 62 Comments

Tags: , ,

62 Responses to “HTML5 Support In Visual Studio 2010”

  1. MVC3_user says:

    Thanks, It worked like charm

  2. vanita says:

    runat=”server” is not working in hmtl5 in visualstudio 2010 can any one help us to fix this bug?

  3. faizan says:

    Worked :)

    Thanks

  4. Mak says:

    Thnx a ton :) :)

  5. srinivasa rao nalam says:

    this is very good

    Thank You

  6. Dian Pramana says:

    worked fine

  7. ali says:

    thank you it is very good.
    you can help me about web program?
    I need css3 for visual stadio ?
    thanks;

  8. Sam says:

    Thanks a ton for sharing this !! Works at the first try !!

  9. sudheer says:

    Yes it is working great =, Thanks a lot

  10. angel says:

    Thanks a ton :)

  11. Sunil says:

    can you please share a same link for VS2008?

  12. sina says:

    very nice… it worked for me but the problem is that when I choose the html5, the intellisense stop working and does not suggest me any tag…. what is the problem!? plz help

Leave a Reply