preface
1. fundamental syntax and semantics
1.1 specifying the doctype
1.2 specifying the character set
1.3 specifying the language
1.4 optimizing [script]s and [link]s
1.5 adding document structure with htmls's new elements
1.6 choosing between[article] and [section]
1.7 checking your document outline
1.8 modifying the document outline
1.9 emphasizing text
1.10 adding importance to text
1.11 highlighting text for reference
1.12 marking up small print
1.13 defining acronyms and abbreviations
1.14 adding links to block-level content
1.15 marking up figures and captions
1.16 marking up dates and times
1.17 setting the stage for native expanding and collapsing
.1.18 controlling the numbering of your lists
1.19 hiding content to show later
1.20 making portions of a page editable
1.21 setting the stage for native drag-and-drop
2. progressive markup and techniques
2.1 adding more semantic meaning
2.2 picking a markup style
2.3 understanding browser support for html5
2.4 making internet explorer recognize html5 elements
2.5 detecting html5 features with javascript
2.6 using html5 boilerplate
2.7 validating html5
2.8 mapping html5 elements to id and class names
3. forms
3.1 displaying a search input field
3.2 contact information input fields
3.3 utilizing date and time input fields
3.4 number inputs
3.5 selecting from a range of numbers
3.6 selecting colors
3.7 creating an editable drop-down
3.8 requiring a form field
3.9 autofocusing a form field
3.10 displaying placeholder text
3.11 disabling autocomplete
3.12 restricting values
3.13 making html5 work in older browsers
3.14 validating form data in older browsers with javascript
3.15 example: sample form
4. native audio
4.1 adding html5 audio
4.2 manipulating the audio stream
4.3 generating [audio] usingjavascript
4.4 visualizing [audio] using [canvas]
4.5 sample design: custom audio player
5. native video
5.1 adding html5 video
5.2 ensuring multi-browser video support
5.3 setting video dimensions
5.4 displaying a placeholder image before video plays
5.5 making video loop
5.6 sample design: manipulating video with [canvas]
6. microdata and custom data
6.1 adding microdata to markup
6.2 using microdata and schema.org
6.3 adding custom data to markup
6.4 accessing custom data with javascript
6.5 manipulating custom data
6.6 example: creating a map application using custom data
7. accessibility
7.1 writing appropriate alt text descriptions
7.2 identifying abbreviations and acronyms
7.3 identifying sections of a page using aria landmark roles
7.4 creating more accessible navigation links
7.5 associating form fields with their labels
7.6 grouping form fields logically
7.7 enabling a fieldset dynamically
7.8 identifying required form fields
7.9 using aria live regions to announce when dynamic content is updating
8. ge010cation
8.1 getting basic geolocation data
8.2 getting basic geolocation data with a fallback
8.3 reverse geocoding an address with latitude and longitude
8.4 converting an address into latitude and longitude
8.5 getting directions from the current location
8.6 example: starbucks to starbucks
9.[canvas]
9.1 drawing on a
9.2 using transparency
9.3 setting [canvas] dimensions
9.4 using gradients, patterns, and line styles
9.5 pulling external images into a [canvas] drawing
9.6 setting color transformations
9.7 working with geometric transformations
9.8 placing text on a [canvas]
9.9 clipping [canvas] drawings
9.10 animating [canvas] drawings
9.11 drawing graphs with [canvas]
9.12 saving a [canvas] drawing to a file
10. advanced html5 javascript
10.1 local storage
10.2 application caching
10.3 drag and drop
10.4 web workens
10.5 web sockets
10.6 history
10.7 local files
appendix: html5 resources
index
· · · · · · (
收起)