The Essential Guide to HTML5: Using Games to Learn HTML5 and JavaScript

Jeanine Meyer

  • 出版商: Apress
  • 出版日期: 2018-11-06
  • 售價: $2,500
  • 貴賓價: 9.5$2,375
  • 語言: 英文
  • 頁數: 440
  • 裝訂: Paperback
  • ISBN: 1484241541
  • ISBN-13: 9781484241547
  • 相關分類: HTMLJavaScript
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Gain a deep, practical knowledge of HTML and JavaScript that will provide an introduction to programming and enable you to build interactive websites. This completely updated second edition explains HTML, JavaScript and CSS in the context of working examples and contains full-color screen shots of the programs in action.

You'll begin at an introductory level, learning the essentials of HTML5 and JavaScript and programming techniques. Each chapter features either a familiar game such as Hangman, Rock-Paper-Scissors, Craps, Memory, and Blackjack, or a simple type of game, such as a quiz, a maze, or animated simulations. You’ll develop solid programming skills that will help when learning other programming languages. Each chapter contains tables revealing the structure of the program with comments for each line of code.

These examples demonstrate the features introduced with HTML5.  You’ll see how to use canvas elements for line drawing. You can include your own audio and video clips, directly controlled by your JavaScript code. For example, the reward for correct completion of a quiz can be the playing of an audio clip and a video clip. You’ll also learn how to use localStorage to store high scores or game preferences on a user's computer for retrieval next time they play. The Essential Guide to HTML5 explores all of this and more.

What You'll Learn

  • Understand HTML 5 concepts with the help of easy-to-grasp, appealing examples
  • Use HTML5 to explore new avenues for application and game development on the web
  • Review important new elements of HTML 5
  • Build, test, and upload simple games to a web site. 

Who This Book Is For

Both absolute beginners and users with some knowledge of HTML who want to learn the new HTML5 features

商品描述(中文翻譯)

獲得深入且實用的 HTML 和 JavaScript 知識,這將為您提供程式設計的入門,並使您能夠建立互動式網站。本書的第二版經過全面更新,解釋了 HTML、JavaScript 和 CSS,並以實際範例為背景,包含了程式運行時的全彩螢幕截圖。

您將從入門級開始,學習 HTML5 和 JavaScript 的基本概念及程式設計技巧。每一章都會介紹一個熟悉的遊戲,例如猜字遊戲、石頭剪刀布、擲骰子、記憶遊戲和二十一點,或是一種簡單的遊戲,如測驗、迷宮或動畫模擬。您將培養堅實的程式設計技能,這將有助於學習其他程式語言。每一章都包含表格,揭示程式的結構,並對每一行程式碼進行註解。

這些範例展示了 HTML5 引入的特性。您將看到如何使用 canvas 元素進行線條繪製。您可以直接由 JavaScript 代碼控制自己的音頻和視頻片段。例如,正確完成測驗的獎勵可以是播放音頻片段和視頻片段。您還將學習如何使用 localStorage 在用戶的電腦上存儲高分或遊戲偏好,以便下次遊玩時檢索。《The Essential Guide to HTML5》將探討這些內容及更多。

您將學到的內容:
- 透過易於理解且吸引人的範例了解 HTML5 概念
- 使用 HTML5 探索網路應用程式和遊戲開發的新途徑
- 回顧 HTML5 的重要新元素
- 建立、測試並上傳簡單的遊戲到網站。

本書適合對象:
無論是完全的初學者,還是對 HTML 有一定了解並希望學習新 HTML5 特性的使用者。