HTML and CSS Reference
In-Depth Information
properties representing HTML5 features. If a particular feature is supported by the browser, this sample
page appends a message to a <div> element with the ID Message .
n Note The jQuery code used in HelloModernizr.htm is fairly easy to understand. The ready() function runs
when a web page is fully loaded in a browser. To select an HTML element with a specific ID, you use # syntax. The
append() method called on the <div> appends the supplied text/markup to the element. You learn about jQuery in
more detail in Chapter 2.
Figure 1-8 shows a sample run of HelloModernizr.htm in Firefox.
Figure 1-8. Sample run of HelloModernizr.htm in Firefox
Notice how support for the <audio> , <video> , and <canvas> tags and drag-and-drop is confirmed to be
available on the browser.
HTML5 and ASP.NET
You've learned the history of HTML5 and its features. You also created a couple of simple HTML5 pages
and used the Modernizr library to detect browser support for HTML5 features. Now, let's see how HTML5
fits into the overall ASP.NET stack. Figure 1-9 shows the ASP.NET technology stack.
Figure 1-9. ASP.NET stack
 
 
Search WWH ::




Custom Search