Mads Kristensen published his Web Standards Update for Visual Studio yesterday which gives it full HTML 5 support (see image below). The update only works with SP1 versions of Visual Studio (full version and express) and can be downloaded here.

This update gives intellisense support for HTML 5 pages, CSS 3, and additions to JavaScript (i.e. geolocation and DOM storage). The only problem is that when you create a new web page or form, it doesn’t give you the HTML 5 DOCTYPE and html settings.
This is what is created in a new web form:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “”>
<html xmlns=””>
and this is how is should be formatted for HTML 5:
<!DOCTYPE html>
This isn’t a big deal but hopefully future versions will have this fixed.
HTML 5 is important to learn because the web is moving towards it and it will be heavily used in Microsoft’s new Windows 8 operating system. Microsoft recently showed applications for Windows 8 written entirely in HTML 5 and JavaScript.
HTML 5 Validation in Visual Studio 2010.

Translate »
%d bloggers like this: