The Definitive Guide to HTML5 cover

The Definitive Guide to HTML5

Rating 4.2
Word count
1.3M words
Chapters
40
Series
Turing Programmer's Library
ISBN
9787115338365

Tags

Summary

The Definitive Guide to HTML5 is a systematic reference written by Adam Freeman for web development beginners and web designers. The Chinese edition is translated from his English book The Definitive Guide to HTML5. At about 834 pages, the book is divided into five parts and 40 chapters. Part I, "Getting Started," recounts the history of HTML and the origins and current state of the HTML5 standard, and walks readers through setting up a development environment (browser, editor, web server, obtaining the sample code). It then uses three chapters to give a quick tour of HTML elements and attributes, CSS cascading and units, and JavaScript statements, functions, objects, arrays, and error handling. Part II, "HTML Elements," explains markup elements one by one by purpose: document structure and metadata, marking up text, grouping content, sectioning documents (semantic elements such as header, footer, nav, article, aside, section, and details), tables, forms and input types, input validation, and embedded content. Part III, "CSS," covers selectors (basic, compound, pseudo-elements, and the various pseudo-classes), borders and backgrounds, the box model and floats, positioning and multi-column/flexbox layouts, text and web font styling, and CSS3 features such as transitions, animations, and transforms. Part IV, "Working with the DOM," moves from the Document, Window, and element objects to style scripting, event flow, and element-specific objects; Part V, "Advanced Features," discusses Ajax (including FormData and cross-origin requests), audio and video multimedia, canvas drawing, drag and drop, geolocation, web storage, and offline web applications. The book includes numerous code examples and browser effect screenshots, plus quick-reference tables of HTML5 and CSS3 properties, elements, and functions. It can be read chapter by chapter for self-study or used as a handy reference.

Editor's review

前端技术迭代极快,但HTML、CSS、DOM这三样地基十年未变。《HTML5权威指南》难得之处,是把这三块内容放进同一本书里按“开篇—HTML元素—CSS—DOM—高级功能”五段式串起来,读完之后,你对“一个页面是怎样被写出来、被样式化、被脚本操控”会有一条完整链路,而不只是背下一堆标签。 它的写法偏“逐个说明+代码示例”:每个元素、每条属性都给出可运行的例子和主流浏览器的呈现效果,还附有属性、元素、函数速查表。因此它既是能从头读的教程,也是查得到、翻得着的案头工具书——很多读者的用法是通读一遍打底,之后遇到具体标签或CSS属性再回来翻。 需要坦白的一点是:原书英文版成书于2011年,中文版2014年出版,因此它不包含后来的HTML5.1/WHATWG更新、Flexbox之外的新布局方案、ES6以后的JavaScript语法,也没有涉及SVG。它讲的是“稳定的核心”,不是“最新的语法糖”。 如果你的目标是系统建立Web前端知识骨架,并能随时查证某个元素的语义与用法,这本八百多页的大部头依然值得放在书架上;若你只想要一本轻快的入门书,或只想学最新框架,它并不是最优的起点。

Who it's for

A good fit for

  • 已有零散网页制作经验,想把HTML/CSS/DOM串成体系的开发者
  • 前端自学者,需要一个按元素与属性系统查阅的案头参考书
  • 计算机相关专业学生,配合课程补充Web标准与DOM实践
  • 需要维护传统网页项目、常查标签语义与CSS属性的从业者

Not a good fit for

  • 完全没有编程基础、希望轻松入门的第一本书读者
  • 只想学习最新JavaScript语法或React、Vue等框架的人
  • 期待涵盖HTML5.1之后新规范、SVG或现代布局新特性的读者

Reading tips

  1. 先读第1—5章打好HTML/CSS/JavaScript底子,再按兴趣挑第二至第五部分,不必从第一页啃到最后。
  2. 把它当工具书用:动手敲书中的示例代码,对照浏览器效果图逐条验证,比只读文字记得牢。
  3. 遇到旧语法或已过时特性时,以MDN等现行文档为准,把本书当知识地图而非规范终稿。
  4. 读完第三部分和第四部分后,用一个完整小项目(表单+布局+脚本交互)把所学串起来。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Part I Getting Started
  2. Chapter 1 HTML5 Background Knowledge
  3. Chapter 2 Preparation
  4. Chapter 3 First Look at HTML
  5. Chapter 4 First Look at CSS
  6. Chapter 5 First Look at JavaScript
  7. Part II HTML Elements
  8. Chapter 6 Background Knowledge of HTML5 Elements
  9. Chapter 7 Creating HTML Documents
  10. Chapter 8 Marking Up Text
  11. Chapter 9 Organizing Content
  12. Chapter 10 Sectioning Documents
  13. Chapter 11 Table Elements
  14. Chapter 12 Forms
  15. Chapter 13 Customizing input Elements
  16. Chapter 14 Other Form Elements and Input Validation
  17. Chapter 15 Embedded Content
  18. Part III CSS
  19. Chapter 16 Understanding CSS
  20. Chapter 17 Using CSS Selectors (Part I)
  21. Chapter 18 Using CSS Selectors (Part II)
  22. Chapter 19 Using Borders and Backgrounds
  23. Chapter 20 Using the Box Model
  24. Chapter 21 Creating Layouts
  25. Chapter 22 Styling Text
  26. Chapter 23 Transitions, Animations, and Transforms
  27. Chapter 24 Other CSS Properties and Features
  28. Part IV Working with the DOM
  29. Chapter 25 Understanding the DOM
  30. Chapter 26 Using the Document Object
  31. Chapter 27 Using the Window Object
  32. Chapter 28 Using DOM Elements
  33. Chapter 29 Styling DOM Elements
  34. Chapter 30 Using Events
  35. Chapter 31 Using Element-Specific Objects
  36. Part V Advanced Features
  37. Chapter 32 Using Ajax (Part I)
  38. Chapter 33 Using Ajax (Part II)
  39. Chapter 34 Using Multimedia
  40. Chapter 35 Using the canvas Element (Part I)

FAQ

这本书适合零基础读者直接上手吗?
不太适合作为第一本书。它更像系统参考书,假定读者对网页有初步认识,直接通读八百多页容易受挫。建议先通过入门教程掌握基本HTML与CSS,再用本书梳理体系。
书中的内容现在还不过时吗?
原书英文版成书于2011年,中文版2014年出版,HTML元素、CSS盒模型、DOM与事件等核心知识仍然适用;但HTML5.1之后的新规范、现代JavaScript语法和较新的布局方案未收录,需配合现行文档学习。
这本书和《HTML5秘籍》有什么区别?
两者都出自图灵程序设计丛书。《HTML5权威指南》按元素与属性逐条系统讲解,偏参考手册;《HTML5秘籍》以任务和案例驱动,行文更轻快,篇幅也更短,适合想快速上手做页面的人。
书里的示例代码在哪里获取?
第2章专门讲了开发环境准备,包括挑选浏览器、编辑器、Web服务器以及获取Node.js和示例代码。中文版配套代码一般可在图灵社区本书页面下载,也可按书中步骤自行搭建环境。
为什么目录里没有SVG的内容?
本书聚焦HTML5核心语言、CSS3、DOM与Ajax、多媒体、canvas等高级API,SVG不在其覆盖范围内,需要另行查阅专门资料。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

Top rated in the same category