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
  • MVC3_user

    Thanks, It worked like charm

  • vanita

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

  • faizan

    Worked :)


  • Mak

    Thnx a ton :) :)

  • srinivasa rao nalam

    this is very good

    Thank You

  • Dian Pramana

    worked fine

  • ali

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

  • Sam

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

  • sudheer

    Yes it is working great =, Thanks a lot

  • angel

    Thanks a ton :)

  • Sunil

    can you please share a same link for VS2008?

  • sina

    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