Header Scripts

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” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
and this is how is should be formatted for HTML 5:
<!DOCTYPE html>
<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.

Print Friendly, PDF & Email
Translate »