forked from jgthms/html-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
216 lines (196 loc) · 7.74 KB
/
Copy pathindex.html
File metadata and controls
216 lines (196 loc) · 7.74 KB
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
---
layout: single
elementName: button
---
<section id="button" class="element">
<header class="element-header">
<nav class="element-links">
<span>
Type: <strong>inline</strong>
</span>
<span>
Self-closing:
<strong>
No
</strong>
</span>
<a class="element-links-direct" href="{{site.url}}/element/button/" data-element-name="button" data-tooltip="Single page for this element">Permalink</a>
<a class="element-share" data-tooltip="Share on Twitter or Facebook" data-element-name="button">Share</a>
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/HTML/Element/button" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
</nav>
<h2 class="element-name">
<a href="#button">
<span>#</span>
button
</a>
</h2>
<div class="element-description">
<p>Defines a clickable <strong>button</strong>.</p>
</div>
</header>
<div id="button-example-0" class="example">
<p class="example-label">
<strong>Example:</strong>
<a class="example-clipboard" data-tooltip="Click to copy code" data-clipboard-target="#button-example-0-code">Copy</a>
</p>
<article class="example-preview">
<div class="example-output"><button>
Submit form
</button></div>
<div id="button-example-0-code" class="example-code">{% highlight html %}<button>
Submit form
</button>{% endhighlight %}</div>
</article>
</div>
<article id="button-name" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="name">
name
</code>
</h3>
<div class="attribute-description">
<p>Defines the unique identifier for that button within the form. It allows the server to access each button's value when submitted.</p>
</div>
</header>
<div class="attribute-values">
<article id="button-name-submit_button" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy name="submit_button"" data-clipboard-text="name="submit_button"">
"submit_button"
</code>
</h4>
<div class="value-description">
<p>The name value must be unique within the context of a <code><form></code> container.</p>
<p>It can only contain alphanumeric characters <code>a-z</code> <code>A-Z</code> <code>0-9</code> and some special characters like <code>-</code> <code>_</code>… but no space.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><button name="submit_button">Submit form</button></div>
</aside>
</article>
</div>
</article>
<article id="button-value" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="value">
value
</code>
</h3>
<div class="attribute-description">
<p>The value sent to the server when submitting the form.</p>
</div>
</header>
<div class="attribute-values">
<article id="button-value-primary" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy value="primary"" data-clipboard-text="value="primary"">
"primary"
</code>
</h4>
<div class="value-description">
<p>The server will receive the value <code>primary</code>.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><button value="primary">Submit form</button></div>
</aside>
</article>
</div>
</article>
<article id="button-type" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="type">
type
</code>
</h3>
<div class="attribute-description">
<p>Defines the button type.</p>
</div>
</header>
<div class="attribute-values">
<article id="button-type-submit" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy type="submit"" data-clipboard-text="type="submit"">
"submit"
</code>
</h4>
<div class="value-description">
<p>The button sends the form data to the server.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><button type="submit">Submit form</button></div>
</aside>
</article>
<article id="button-type-reset" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy type="reset"" data-clipboard-text="type="reset"">
"reset"
</code>
</h4>
<div class="value-description">
<p>The button resets the form.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><button type="reset">Reset</button></div>
</aside>
</article>
</div>
</article>
<article id="button-disabled" class="attribute attribute--novalue">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="disabled">
disabled
</code>
</h3>
<div class="attribute-description">
<p>Disables the button.</p>
<strong class="attribute-is-novalue">No value required.</strong>
</div>
</header>
<div class="attribute-values">
<article id="button-disabled-undefined" class="value">
<header class="value-header">
<div class="value-description">
</div>
</header>
<aside class="value-preview">
<div class="value-output"><button disabled>Submit form</button></div>
</aside>
</article>
</div>
</article>
<article id="button-autofocus" class="attribute attribute--novalue">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="autofocus">
autofocus
</code>
</h3>
<div class="attribute-description">
<p>Sets focus on the element when the web page loads.</p>
<strong class="attribute-is-novalue">No value required.</strong>
</div>
</header>
<div class="attribute-values">
<article id="button-autofocus-undefined" class="value">
<header class="value-header">
<div class="value-description">
</div>
</header>
<aside class="value-preview">
<div class="value-output"><button >Submit form</button></div>
</aside>
</article>
</div>
</article>
</section>