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
90 lines (83 loc) · 3.28 KB
/
Copy pathindex.html
File metadata and controls
90 lines (83 loc) · 3.28 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
---
layout: single
elementName: output
---
<section id="output" 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/output/" data-element-name="output" data-tooltip="Single page for this element">Permalink</a>
<a class="element-share" data-tooltip="Share on Twitter or Facebook" data-element-name="output">Share</a>
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/HTML/Element/output" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
</nav>
<h2 class="element-name">
<a href="#output">
<span>#</span>
output
</a>
</h2>
<div class="element-description">
<p>Defines the result of a calculation or of user action.</p>
</div>
</header>
<div id="output-example-0" class="example">
<p class="example-label">
<strong>Example:</strong>
<a class="example-clipboard" data-tooltip="Click to copy code" data-clipboard-target="#output-example-0-code">Copy</a>
</p>
<article class="example-preview">
<div class="example-output"><form oninput="sum.value = parseInt(a.value) + parseInt(b.value)">
<input type="number" name="a" value="4">
+
<input type="number" name="b" value="7">
=
<output name="sum">11</output>
</form></div>
<div id="output-example-0-code" class="example-code">{% highlight html %}<form oninput="sum.value = parseInt(a.value) + parseInt(b.value)">
<input type="number" name="a" value="4">
+
<input type="number" name="b" value="7">
=
<output name="sum">11</output>
</form>{% endhighlight %}</div>
</article>
</div>
<article id="output-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 input within the form. It allows the server to access each input's value when submitted.</p>
</div>
</header>
<div class="attribute-values">
<article id="output-name-sum" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy name="sum"" data-clipboard-text="name="sum"">
"sum"
</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"><output name="sum"></output></div>
</aside>
</article>
</div>
</article>
</section>