HTML and CSS Reference
In-Depth Information
CSS3
Strictly speaking, CSS3 isn't a direct feature of HTML5 but is evolving along with HTML5. It's worthwhile
for any HTML5 and ASP.NET developer to know CSS3. ASP.NET developers rely heavily on CSS for the sake
of look and feel and formatting Web Forms, views, and pages, and CSS3 introduces cool new features that
are bound to grab developers' attention. Features such as boxes, shadows, web fonts, transforms,
transitions, and media queries are particularly worth noting because they let developers accomplish
things that weren't easy before.
HTML5 and Browser Support
Even though HTML5 is not yet an official standard, you can start using many of its features in your
ASP.NET web applications. All the leading browsers—Mozilla Firefox, Google Chrome, Opera Software's
Opera, Apple Safari, and Microsoft IE—support HTML5 in varying degrees. These days, most browsers
release updated versions frequently, and HTML5 support improves in each new version. IE is lagging
slightly behind as far as the frequency of new releases is concerned, but IE9 does support several HTML5
features.
As a good programming practice, you should always test your Web Forms, views, and plain HTML
pages in the browser you're targeting. There are two ways to check whether the target browser supports a
specific HTML5 feature:
• Statically at development time
• Dynamically at runtime
Checking for HTML5 Support Statically
With this approach, you manually ensure that the features used in your web pages are supported by your
target browser. You can get help from any of the online utilities that tell you whether a specific browser
version supports certain HTML5 features. Consider, for example, http://html5test.com , w hich provides a
nice way to detect browser support for HTML5. Figure 1-6 shows the home page of the HTML5 test site
displaying the HTML5 support score for the browser being used to view the site.
 
Search WWH ::




Custom Search