Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
解读HTML5
Search
cssrain
September 02, 2014
Technology
210
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
解读HTML5
解读HTML5
cssrain
September 02, 2014
More Decks by cssrain
See All by cssrain
UED工作流程分享和交流
cssrain
1
520
解读HTML
cssrain
0
190
基础CSS(1)
cssrain
0
200
基础CSS(2)
cssrain
0
150
高效的CSS
cssrain
0
200
高级CSS—继承
cssrain
0
170
PhoneGap分享和交流
cssrain
0
150
PhoneGap实践
cssrain
0
99
Zen Coding.
cssrain
0
120
Other Decks in Technology
See All in Technology
JSONataとAWS Step Functionsで目指すRuntimelessな世界
mu7889yoon
1
490
AIエージェントを最高のパートナーに育てる方法|評価と判断軸を育てる5つのステップ
koichiaoki
1
160
「ピッケル本」日本語版は4.0(第6版)が出版されるべき / pickaxe4-nagoyark05
kakutani
2
290
C#コードの結合を可視化する Roslyn解析による設計改善と リファクタリング判断
dora56
0
610
Von-Neumann Machines, Dreams & The Futures of IT
ufried
0
130
ほんとうの信頼性はヒーローが死んでからはじまる / True reliability begins after the hero dies
vtryo
0
120
10年欲しかった音楽管理アプリを、AIと一緒に作りはじめた
judau
1
100
AIエージェントの権限管理 3: Agentic RAG の Fine grained access control 編
ren8k
1
260
Vibe Coding で作ったプロダクトをどう安全に動かすか / How to Safely Run Products Built with Vibe Coding
glidenote
0
570
AIに書かせて、プラットフォームで縛る ― EKSプラットフォームで実践した責任境界と権限設計
elmodev09
0
400
エージェントはローカル、検証はMicroVM — Lambda MicroVMsでつくるServerless CI
fujioka6789
3
780
ScotSecure West 2026 - Glasgow
raybugg
0
160
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
880
Site-Speed That Sticks
csswizardry
13
1.5k
Paper Plane
katiecoart
PRO
4
53k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Embracing the Ebb and Flow
colly
88
5.2k
GraphQLとの向き合い方2022年版
quramy
50
15k
RailsConf 2023
tenderlove
30
1.6k
How to Talk to Developers About Accessibility
jct
2
550
Building Applications with DynamoDB
mza
96
7.2k
Writing Fast Ruby
sferik
630
63k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
76k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Transcript
HTML5 HTML5 Powered with Connectivity / Realtime, Device Access, Graphics,
3D &Effects, Multimedia, Performance &Integration, Semantics, and Offline &Storage © 亚信联创科技 新浪微博:@亚联UED 分享人:单东林
[email protected]
上海创新业务部门培训第03期(仅供内部培训使用) UED分享 · 交流 http://cssrain.github.io
© 亚信联创科技 Contact 单东林
[email protected]
1,HTML的历史 2,HTML5是什么 3,HTML5的DOCTYPE 4,新的语义标签 5,表单新特性
6,原生视频和音频支持 7,Web Socket通信 8,跨域访问 9,离线Web应用 10,本地存储-Web Storage 11,多线程-Web Workers 12,地理位置-Geolocation 13,绘图-Canvas 1 大致内容
© 亚信联创科技 Contact 单东林
[email protected]
HTML的历史 2 Tim Berners-Lee IETF
W3C WHATWG 1991 HTML 1996 HTML 2 1997 HTML 3.2 1998 HTML 4 1999 HTML 4.01 2000 XHTML 1 2006 XHTML 2 2010 HTML 5
© 亚信联创科技 Contact 单东林
[email protected]
HTML5是什么 3 爱多媒体,爱终端访问,爱3D特效,爱实时连接 爱图形化,爱离线存储,爱语义化,爱性能和集成 我不是CSS,也不是JavaScript
我是HTML,我只增加了一些新的元素和特性而已
© 亚信联创科技 Contact 单东林
[email protected]
4 <!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> </head> <body> <div>此处省略10000字</div> </body> </html> Do you remember ?
© 亚信联创科技 Contact 单东林
[email protected]
5 <!DOCTYPE html> <html> <head>
<meta charset=“utf-8”> <title>HTML5 markup</title> </head> <body> <h1>Hello,HTML5!</h1> </body> </html> HTML5的DOCTYPE
© 亚信联创科技 Contact 单东林
[email protected]
6 <html> <head> </head> <body>
<div id="header"></div> <div id="nav"></div> <div id="content"> <h1>My Article</h1> </div> <div id="footer"> </div> </body> </html> 新的语义标签 <html> <head></head> <body> <header></header> <nav></nav> <section> <article></article> </section> <footer></footer> </body> </html>
7 表单新特性 Input: Number,Range,Date, Color,Search,Tel,Email, Url,List Eg: <input type="email“ />
<input type="date“ /> <select data="http://domain/getcity"> </select> 新的控件类型 Required,min,max, multiple,pattern,low, high,optimum Eg: <input type="text" required > <input type="number" min=10 max=100 > 内置的表单验证 enctype="application/x-www- form+xml" Eg: <form action='/register' method="post“ enctype="application/x-www- form+xml" > XML提交类型 © 亚信联创科技 Contact 单东林
[email protected]
8 DEMO TIME! © 亚信联创科技 Contact 单东林
[email protected]
9 原生视频和音频支持 © 亚信联创科技 Contact 单东林
[email protected]
<Object> <Embed>
<Video> <Audio>
Contact 单东林
[email protected]
© 亚信联创科技 <object width="425" height="344"> <param name="movie“
value="http://www.youtube.com/v/9sEI1AUFJKw"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/9sEI1AUFJKw" type="application/x- shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed> </object> <video width=”320” height=”240” controls preload> <source src="Ballmer_Developers_Developers.ogv" type='video/ogg; codecs="theora, vorbis"'> <source src="Ballmer_Developers_Developers.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"> </video> <audio width=”320” height=”240” controls preload> <source src="Lili_Ivanova_Vetrove.mp3"> </audio> 10
11 Web Socket通信 © 亚信联创科技 Contact 单东林
[email protected]
使用Ajax轮询,浏览器 定期发送HTTP请求
使用长轮询 使用流 Web Socket
12 跨域访问-传统方式 © 亚信联创科技 Contact 单东林
[email protected]
X Y
Y Y Y X X X
13 跨域访问-cross document messaging © 亚信联创科技 Contact 单东林
[email protected]
X
Y Y X var o = document.getElementsByTagName('iframe')[0]; o.contentWindow.postMessage('Hello world', 'http://b.example.org/');
14 离线Web应用 © 亚信联创科技 Contact 单东林
[email protected]
离线存储 + Web
SQL Database
15 本地存储-Web Storage © 亚信联创科技 Contact 单东林
[email protected]
4KB 5MB
不安全 安全 难用 易用
16 地理位置 Geolocation
17 多线程-Web Workers © 亚信联创科技 Contact 单东林
[email protected]
多进程 …….
假死 后台运行 神马都是浮云
18 绘图-Canvas © 亚信联创科技 Contact 单东林
[email protected]
Eg: <canvas id="myCanvas"></canvas>
<script > var canvas=document.getElementById('myCan vas'); var ctx=canvas.getContext('2d'); ctx.fillStyle='#FF0000'; ctx.fillRect(0,0,80,100); </script>
19 我又来了; © 亚信联创科技 Contact 单东林
[email protected]
© 亚信联创科技 Contact 单东林
[email protected]
Thanks & QA