買這商品的人也買了...
-
$790Maximum Accessibility: Making Your Web Site More Usable for Everyone
-
$2,180$2,071 -
$1,188Practical Perforce (Paperback)
-
$990JavaScript: The Good Parts (Paperback)
-
$880$748 -
$1,200$1,020 -
$891Building iPhone Apps with HTML, CSS, and JavaScript: Making App Store Apps Without Objective-C or Cocoa (Paperback)
-
$750Cloud Computing, A Practical Approach (Paperback)
-
$520$442 -
$750$495 -
$680$537 -
$1,560Physically Based Rendering : From Theory To Implementation, 2/e (Hardcover)
-
$600HTML5: Designing Rich Internet Applications (Paperback)
-
$450$383 -
$179CSS3: Visual QuickStart Guide, 5/e (Paperback)
-
$199Canvas Pocket Reference: Scripted Graphics for HTML5 (Paperback)
-
$199HTML5 and CSS3: Develop with Tomorrow's Standards Today (Paperback)
-
$1,260Stunning CSS3: A project-based guide to the latest in CSS (Paperback)
-
$1,400$1,330 -
$580$199 -
$450$351 -
$450$297 -
$450$351 -
$2,510$2,385 -
$690HTML5 Canvas (Paperback)
相關主題
商品描述
If you don't know about the new features available in HTML5, now's the time to find out. The latest version of this markup language is going to significantly change the way you develop web applications, and this book provides your first real look at HTML5's new elements and attributes.
Even though work on HTML5 is ongoing, browsers such as Safari, Mozilla, Opera, and Chrome already support many of its features -- and browsers for smart phones are even farther ahead, especially iPhone's MobileSafari browser. With HTML5: Up & Running, you'll learn how this new version enables browsers to interact with JavaScript much more easily than before. You'll also learn how HTML5 can help you develop applications that:
- Display video directly in the browser, without having to rely on plugins
- Work even when a user is offline, by taking advantage of HTML5's persistent storage
- Offer a drawing canvas for dynamically generated 2-D graphics
This concise guide is the most complete and authoritative book you'll find on the subject. Author Mark Pilgrim writes the weekly digest for the HTML5 Working Group, and represents Google at conferences on HTML5's capabilities. Stay ahead of the curve. Order a copy of this book today.
by Mark Pilgrim
You may think of HTML as tags and angle brackets. That’s an important part of it, but it’s not the whole story. The HTML5 specification also defines how those angle brackets interact with JavaScript, through the Document Object Model (DOM). HTML5 doesn’t just define video tag; there is also a corresponding DOM API for video objects in the DOM. You can use this API to detect support for different video formats, play a video, pause, mute audio, track how much of the video has been downloaded, and everything else you need to build a rich user experience around the video tag itself.
Chapter 2 and Appendix A will teach you how to properly detect support for each new HTML5 feature.
Now, if you want to improve your web applications, you’ve come to the right place. Here’s a concrete example: HTML5 supports all the form controls from HTML 4, but it also includes new input controls. Some of these are long-overdue additions like sliders and date pickers; others are more subtle. For example, the email input type looks just like a text box, but mobile browsers will customize their onscreen keyboard to make it easier to type email addresses. Older browsers that don’t support the email input type will treat it as a regular text field, and the form still works with no markup changes or scripting hacks. This means you can start improving your web forms today, even if some of your visitors are stuck on IE 6.
3. It’s easy to get started. “Upgrading” to HTML5 can be as simple as changing your doctype. The doctype should already be on the first line of every HTML page. Previous versions of HTML defined a lot of doctypes, and choosing the right one could be tricky. In HTML5, there is only one doctype: !DOCTYPE html
Upgrading to the HTML5 doctype won’t break your existing markup, because all the tags defined in HTML 4 are still supported in HTML5. But it will allow you to use -- and validate -- new semantic elements like article, section, header, and footer. You’ll learn all about these new elements in Chapter 3.
Each chapter of this book includes the all-too-familiar browser compatibility charts. But more importantly, each chapter includes a frank discussion of your options if you need to support older browsers. HTML5 features like geolocation (Chapter 6) and video (Chapter 5) were first provided by browser plugins like Gears or Flash. Other features, like canvas (Chapter 4), can be emulated entirely in JavaScript. This book will teach you how to target the native features of modern browsers, without leaving older browsers behind.
- Today the Director announces that when the XHTML 2 Working Group charter expires as scheduled at the end of 2009, the charter will not be renewed. By doing so, and by increasing resources in the HTML Working Group, W3C hopes to accelerate the progress of HTML5 and clarify W3C’s position regarding the future of HTML.
商品描述(中文翻譯)
如果你還不知道 HTML5 中的新功能,現在正是了解的時候。這個標記語言的最新版本將顯著改變你開發網頁應用程式的方式,而這本書將為你提供對 HTML5 新元素和屬性的首次深入了解。
儘管 HTML5 的開發仍在進行中,但像 Safari、Mozilla、Opera 和 Chrome 等瀏覽器已經支持其許多功能,而智能手機的瀏覽器更是走在前面,特別是 iPhone 的 MobileSafari 瀏覽器。在《HTML5: Up & Running》一書中,你將學習到這個新版本如何使瀏覽器與 JavaScript 的互動變得比以往更簡單。你還將學習到 HTML5 如何幫助你開發以下應用程式:
- 直接在瀏覽器中顯示視頻,而無需依賴插件
- 利用 HTML5 的持久存儲,即使在用戶離線時也能正常運作
- 提供一個繪圖畫布,用於動態生成的 2-D 圖形
這本簡明的指南是你能找到的最完整和權威的書籍。作者 Mark Pilgrim 是 HTML5 工作組的每週摘要撰寫者,並在有關 HTML5 功能的會議上代表 Google。保持領先,今天就訂購這本書。
**你應該知道的五件關於 HTML5 的事**
**作者:Mark Pilgrim**
1. **這不是一個大東西**。你可能會問:“如果舊版瀏覽器不支持 HTML5,我該如何開始使用它?”但這個問題本身是誤導性的。HTML5 不是一個大東西;它是一組獨立的功能。因此,你無法檢測“HTML5 支持”,因為這沒有意義。但你可以檢測對個別功能的支持,例如 canvas、video 或 geolocation。
你可能會將 HTML 視為標籤和尖括號。這是其中一個重要部分,但並不是全部。HTML5 規範還定義了這些尖括號如何通過文檔物件模型(DOM)與 JavaScript 互動。HTML5 不僅定義了 video 標籤;在 DOM 中還有對應的 DOM API 用於視頻對象。你可以使用這個 API 來檢測對不同視頻格式的支持、播放視頻、暫停、靜音音頻、跟踪視頻已下載的部分,以及構建圍繞 video 標籤本身的豐富用戶體驗所需的一切。
第二章和附錄 A 將教你如何正確檢測對每個新 HTML5 功能的支持。
2. **你不需要丟棄任何東西**。無論你喜歡還是討厭,HTML 4 都是有史以來最成功的標記格式。HTML5 在這一成功的基礎上發展。你不需要丟棄現有的標記。你不需要重新學習你已經知道的東西。如果你的網頁應用程式在昨天的 HTML 4 中運作良好,那麼今天在 HTML5 中仍然可以運作。
現在,如果你想改善你的網頁應用程式,你來對地方了。這裡有一個具體的例子:HTML5 支持 HTML 4 中的所有表單控件,但它還包括新的輸入控件。其中一些是長期以來期待的新增功能,如滑塊和日期選擇器;其他則更為微妙。例如,email 輸入類型看起來就像一個文本框,但移動瀏覽器會自動調整其螢幕鍵盤,以便更容易輸入電子郵件地址。不支持 email 輸入類型的舊版瀏覽器將把它視為常規文本字段,並且表單仍然可以在不改變標記或腳本的情況下正常運作。這意味著即使一些訪問者仍在使用 IE 6,你也可以開始改善你的網頁表單。
在第九章中閱讀有關 HTML5 表單的所有詳細信息。
3. **開始很簡單**。“升級”到 HTML5 可以簡單到只需更改你的文檔類型。文檔類型應該已經在每個 HTML 頁面的第一行。以前的 HTML 版本定義了許多文檔類型,選擇正確的可能會很棘手。在 HTML5 中,只有一個文檔類型:!DOCTYPE html
升級到 HTML5 文檔類型不會破壞你現有的標記,因為 HTML 4 中定義的所有標籤在 HTML5 中仍然受到支持。但它將允許你使用並驗證新的語義元素,如 article、section、header 和 footer。你將在第三章中學到這些新元素的所有內容。
4. **它已經可以運作**。無論你想在畫布上繪圖、播放視頻、設計更好的表單,還是構建可以離線運作的網頁應用程式,你會發現 HTML5 已經得到了很好的支持。Firefox、Safari、Chrome、Opera 和移動瀏覽器已經支持 canvas(第四章)、video(第五章)、geolocation(第六章)、local storage(第七章)等功能。Google 已經支持微數據註釋(第十章)。即使是 Microsoft——這個在標準支持方面不常被認為是開拓者的公司——也將在即將推出的 Internet Explorer 9 中支持大多數 HTML5 功能。
這本書的每一章都包括熟悉的瀏覽器兼容性圖表。但更重要的是,每一章都包括對於需要支持舊版瀏覽器的選項的坦誠討論。HTML5 功能如 geolocation(第六章)和 video(第五章)最初是由像 Gears 或 Flash 這樣的瀏覽器插件提供的。其他功能,如 canvas(第四章),可以完全在 JavaScript 中模擬。這本書將教你如何針對現代瀏覽器的原生功能,而不會讓舊版瀏覽器被拋在一旁。
5. **它將持續存在**。Tim Berners-Lee 在 1990 年代初期發明了萬維網。他後來創立了 W3C,作為網頁標準的管理者,該組織已經執行了超過 15 年。以下是 W3C 在 2009 年 7 月對網頁標準未來的看法:
“今天,主任宣布,當 XHTML 2 工作組的章程按計劃在 2009 年底到期時,該章程將不會被續期。通過這樣做,並增加 HTML 工作組的資源,W3C 希望加速 HTML5 的進展,並澄清 W3C 對 HTML 未來的立場。”
HTML5 將持續存在。讓我們深入了解。