for
í¹ì±ì <label>
ê³¼ <output>
ì ì ì© ê°ë¥í í¹ì±ì
ëë¤. <label>
ììì ì ì©íë ê²½ì° ë¼ë²¨ì´ ì¤ëª
íê³ ìë ìì ìì를 ëíë
ëë¤. <output>
ììì ì ì©íë ê²½ì° ì¶ë ¥ì ì¬ì©ëë ê°ì íìíë ìì ê°ì ëª
ìì ì¸ ê´ê³ë¥¼ ííí©ëë¤.
<p>
<label>First Name (no "for" attribute):</label>
<input id="first" type="text" value="Jane" />
</p>
<p>
<label for="last">Last Name (w/ "for" attribute):</label>
<input id="last" type="text" value="Doe" />
</p>
<p id="result">
<strong id="result-label">Full Name:</strong>
<output for="first last" aria-labelledby="result-label" id="output"></output>
</p>
label[for="paragraph"] {
color: rebeccapurple;
}
#result {
text-align: center;
}
#result-label {
font-size: 16pt;
}
#result-label,
#output {
display: block;
}
const firstNameEl = document.getElementById("first");
const lastNameEl = document.getElementById("last");
const outputEl = document.getElementById("output");
function updateOutput() {
const value = `${firstNameEl.value} ${lastNameEl.value}`;
outputEl.innerText = value;
}
updateOutput();
firstNameEl.addEventListener("input", updateOutput);
lastNameEl.addEventListener("input", updateOutput);
ì¬ì©
<label>
ìì ì¬ì©íë ê²½ì°, for
í¹ì±ì ê°ì ì°ê²°ë ìì ììì id
ê°ì
ëë¤.
<label for="username">Your name</label> <input type="text" id="username" />
<output>
ìì ì¬ì©íë ê²½ì°, for
í¹ì±ì ê°ì ì¶ë ¥ ê°ì ìì±í기 ìí ììì id
ê°ì 공백ì¼ë¡ 구ë¶íì¬ ëì´í 목ë¡ì
ëë¤.
<input type="range" id="b" name="b" value="50" /> +
<input type="number" id="a" name="a" value="10" /> =
<output name="result" for="a b">60</output>
ìì
ì¬ì© ìì ë <label>
ê³¼ <output>
ììì íì´ì§ìì íì¸í´ì£¼ì¸ì.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4