-
Notifications
You must be signed in to change notification settings - Fork 0
/
2016-09-02-html-tips.html
158 lines (150 loc) · 5.03 KB
/
2016-09-02-html-tips.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>HTML tips</title>
<meta name="description" content="HTML tips">
<meta name="author" content="Florent Machen">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="s1/css/reveal.css">
<link rel="stylesheet" href="s1/css/theme/league.css" id="theme">
<link rel="stylesheet" href="s1/lib/css/zenburn.css">
<script>
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match(/print-pdf/gi) ? 's1/css/print/pdf.css' : 's1/css/print/paper.css';
document.getElementsByTagName('head')[0].appendChild(link);
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1>HTML</h1>
<h2>tips</h2>
<p>
<small>Présentation de
<a href="#">Florent Machen</a> pour
<a href="http://www.recisio.com">Recisio</a> le 02/09/2016
</small>
</p>
</section>
<section>
<section>
<h1>br != p</h1>
<ul>
<li><br><br> either</li>
<li><br><br><br> either</li>
</ul>
<pre><code data-trim>
<p>paragraph 1</p>
<p>paragraph 2</p>
</code></pre>
<pre><code data-trim>
<p>paragraph 1<br>
paragraph 2</p>
</code></pre>
</section>
<section>
<h1>abbr</h1>
<ul>
<li><abbr title="aide pour l'utilisateur">help user</abbr></li>
</ul>
<pre><code data-trim>
<abbr title="tooltip">word</abbr>
</code></pre>
</section>
<section>
<h1>placeholder</h1>
<ul>
<li>show an example value to the user</li>
<li>label != placeholder</li>
<li>label say "what"</li>
</ul>
<pre><code data-trim>
<label>
Your e-mail:
<input type="email" placeholder="florent@recisio.com" name="mail">
</label>
</code></pre>
</section>
<section>
<h1>Keyboards</h1>
<ul>
<li>
button, checkbox, color, date, datetime-local,
email, file, hidden, image, month,
number, password, radio, range, reset,
search, submit, tel, text, time,
url, week
</li>
</ul>
<pre><code data-trim>
<label>Phone number: <input type="tel" name="mobile"></label>
</code></pre>
</section>
<section>
<h1>Data Attribute</h1>
<ul>
<li>data-</li>
<li>usefull for js ;)</li>
</ul>
<pre><code data-trim>
<div id="myDiv" data-custom-attr="My Value"> Bla Bla </div>
</code></pre>
</section>
</section>
</div>
</div>
<script src="s1/lib/js/head.min.js"></script>
<script src="s1/js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'convex', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
{
src: 's1/lib/js/classList.js',
condition: function () {
return !document.body.classList;
}
},
{
src: 's1/plugin/markdown/marked.js',
condition: function () {
return !!document.querySelector('[data-markdown]');
}
},
{
src: 's1/plugin/markdown/markdown.js',
condition: function () {
return !!document.querySelector('[data-markdown]');
}
},
{
src: 's1/plugin/highlight/highlight.js',
async: true,
condition: function () {
return !!document.querySelector('pre code');
},
callback: function () {
hljs.initHighlightingOnLoad();
}
},
{src: 's1/plugin/zoom-js/zoom.js', async: true},
{src: 's1/plugin/notes/notes.js', async: true}
]
});
</script>
</body>
</html>