06.60 Choosing CSS Versions

WINDOWS

Alt,T, O

MENU

Tools | Options Text Editor | HTML | Validation (HTML Schema)

COMMAND

Tools.Options

VERSIONS

2005, 2008, 2010, 2010 SP1

CODE

vstipEdit0093

When working with Cascading Style Sheets (CSS), you often find yourself working with specific versions. In this tip, we look at how to set your CSS version for dedicated and embedded styles.

Note

Visual Studio 2010 Service Pack 1 added limited support for HTML5 and CSS3. For more information, see http://blogs.msdn.com/b/zainnab/archive/2011/04/12/vs2010-sp1-new-features-html-5-and-css-3-support.aspx.

Dedicated Style Sheets

When you create a CSS file in Visual Studio, you can choose the version you want by selecting it from the Cascading Style Sheet Version For Validation ...

Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.