Output is done
This commit is contained in:
parent
43ed7ecc3a
commit
3127d2e94a
|
@ -32,6 +32,10 @@
|
|||
<a href='./data-attribute/index.html'>
|
||||
Custom Data</a> - Data with elements
|
||||
</li>
|
||||
<li>
|
||||
<a href='./output/index.html'>
|
||||
Output Tag</a> - To perform a calculation and show the result
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<li>
|
||||
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
|
||||
<title>HTML Tips and Tricks - Output</title>
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
||||
<link rel='stylesheet' type='text/css' media='screen' href='../main.css'>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="demo">
|
||||
<h2> Let's see the Output </h2>
|
||||
<form oninput="x.value=parseInt(a.value) * parseInt(b.value)">
|
||||
<input type="number" id="a" value="0">
|
||||
* <input type="number" id="b" value="0">
|
||||
= <output name="x" for="a b"></output>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
Loading…
Reference in New Issue