HTML 5 with Visual Studio 2010

HTML 5 with Visual Studio 2010

July 1st, 2010 // 12:55 pm @

If you have tried to create / edit an HTML 5 document in Visual Studio, you must have got a lot of validation errors. The current validator in Visual Studio 2010 supports HTML 4.01 or XHTML 1.1 Transitional as the highest standards.

To enable Intellisense to work with HTML 5, perform the following steps:

    1. Download the HTML5 support package for Visual Studio 2008 from the Visual Web Developer team here.
    2. Copy the html_5.xsd in C:Program Files (x86)Microsoft Visual Studio 10.0Common7Packagesschemashtml
    3. Edit the correct registry file and replace 9.0 with 10.0
      The file will look like this ( 64 bit VS 2010 Ultimate for me ):

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftVisualStudio10.0Packages{1B437D20-F8FE-11D2-A6AE-00104BCC7269}SchemasSchema 23]
“File”=”html\html_5.xsd”
“Friendly Name”=”HTML 5″
“URI”=”http://schemas.microsoft.com/intellisense/html-5″

  1. Run the registry file to merge it with your registry.
  2. Open Visual Studio 2010
  3. Go to Tools->Options->Text Editor->HTML->Validation
  4. Select target as HTML 5

This would allow you to get Intellisense for your HTML 5 based projects.

Edit: Nitin Mohan has an updated blog post with a lot more info : http://www.nitrix-reloaded.com/2012/01/03/starting-html5-development-with-visual-studio-2010/ .


Category : dotNet &General

7 Comments → “HTML 5 with Visual Studio 2010”


  1. gary

    1 year ago

    very cool~!


  2. Mohammad

    1 year ago

    Tanks and if possible tell me how to add CSS3 too.


  3. MrME

    1 year ago

    NO MORE I LOVE YOU!
    THANKS!


  4. Nick

    1 year ago

    Thank you!! It helps a lot


  5. devendra

    3 months ago

    Nice 1..thanks


  6. Amar

    3 months ago

    Thanks Nitin for an updated article. Have referenced it so users can get the updated info :)


Leave a Reply

Latest Posts

Testimonials

"Amar clearly has a thorough knowledge of Sharepoint, this knowledge, coupled with his professionalism and dedication made him a tremendous asset to the project. He was the key contributor to the later stages of the project delivery effort (the really difficult bit, long hours and hard work that puts huge demands on people), and I can state categorically that without his focussed dedication and hard work we would not have been able to meet the timescales imposed upon the project."

Tim Ellis , Sharepoint Project Manager , Royal Bank of Scotland

Subscribe Now