The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
) Z 9
(0 LSKA PI
M N TH a I
00 S
121 ) 5
U
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
2
•
ᵒ NTT
ᵒ 1,2
• 1
• VR
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
3
HTML5
1
&
1
Ver2.0
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
4
•
• JavaScript API
• API
ᵒ API Video, Canvas
ᵒ API Web Storage
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
5
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
6
• JavaScript API JavaScript
• API
• API
• API
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
7
JavaScript API
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
8
• Web
ᵒ Web
• ECMAScript JavaS
cript
• ES5 ES6 ES2018 ECMAScript +
JavaScript
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
9
•
•
•
•
•
JavaScript
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
10
• script
JavaScript 1
/
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
11
• script src
JavaScript 2
- / < . - /! . = . - / .- .". - /! . ". - /
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
12
• Application Programming Interface
•
API
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
13
• Web JavaScript
Web
•
API W eb
ᵒ
JavaScript API
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
14
• CodePen
ᵒ Web HTML/CSS/JavaScript
ᵒ [Create]→[Pen]
ᵒ ᵒ
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
15
Video
video
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
16
• video
•
• JavaScript API
• ( )
video
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
17
• https://codepen.io/suzukima/pen/qmzRby
• [ ] [ ]
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
18
HTML
% 1 / 1 0 - - => %" 1 /
% 1 - - /
% < / - < %"
% < / - / %"
%" 1
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
19
• "var "
ᵒ let const var
•
L . B ,; . ;. = . ., E
. ,; . ;. = . ., .
= ( . ) . . , , " /; ,
B L . S
. =
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
20
• API
• "document.querySelector( )"
. E L . S
. ,; . ;. = . ., .
= ( . ) . . , , " /; , B L . E
. =
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
21
• API
• “ .addEventListener()”
) B L E B .
) ) , (. , , . / " . . , )
;
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
22
click
mouseenter mouseleave focus
keydown keyup
change input
DOMContentLoaded HTML load
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
23
• video API
video
B
) ) , (. , , . / " . )
. , )
;
E B
) , ) , (. , , . / " . ) , E
. , ) ,
;
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
24
•
• | MDN
• HTMLMediaElement | MDN
video
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
25
Web Storage
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
26
• API
•
ᵒ " " " "
•
Web Storage API
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
27
• https://codepen.io/suzukima/pen/QvXvZw
•
•
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
28
HTML
" "
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
29
• "document.getElementsByTagName( )"
• 1 [0]
. 0 =
; . 0 ( 0 / ( ' ) . 0
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
30
• 2
ᵒ localStorage
ᵒ sessionStorage (
)
/
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
31
• " .setItem( , )"
• bgcolor
; ( ) .
' / ( ) . , '.
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
32
• " .value"
P I E C E L
. , ,//( ; . , = .
P I
/ ( ; ,. = /' ; , =
P I .
; , ; ) . ; , =
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
33
• "if( ) { }"
'. ./
) ./ ( ( ( '. ./
'. ./ I
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
34
• " .getItem( )"
( ). ./ ;
'/ ). ./ ./' ( ). ./
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
35
• " .style. "
; / -
-. - / - -
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
36
• " .value"
; / . = =
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
37
•
ᵒ Web Storage API | MDN
Web Storage
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
38
Canvas
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
39
• canvas JavaScript
•
•
Canvas
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
40
• https://codepen.io/suzukima/pen/owxNMg
•
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
41
HTML
" "
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
42
• " canvas .getContext('2d')"
2 ;CE
2 .2 "/. ) . .2 2
B= ;CE
2 "/. ( 2 .
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
43
• " .beginPath()"
/ . ()
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
44
• “ .moveTo( )”
ᵒ (0,0)
• " .lineTo( )"
; 13 .02 )0 (
13 ,/ )0 (
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
45
• " .closePath()"
• " .stroke()"
./ .(
./ . )
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
46
•
ᵒ canvas | MDN
Canvas
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
47
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
48
• level1
• CodePen
ᵒ
• Mozilla Developer Network
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
49
• 7
•
ᵒ
•
• 7
The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/
© LPI-Japan / EDUCO all rights reserved.
50
Open the Future with HTML5.
@
. -