From 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 Aug 2025 22:58:58 -0500 Subject: removing all downloaded devdocs files --- devdocs/html/attributes%2Ffor.html | 113 ------------------------------------- 1 file changed, 113 deletions(-) delete mode 100644 devdocs/html/attributes%2Ffor.html (limited to 'devdocs/html/attributes%2Ffor.html') diff --git a/devdocs/html/attributes%2Ffor.html b/devdocs/html/attributes%2Ffor.html deleted file mode 100644 index b021cd77..00000000 --- a/devdocs/html/attributes%2Ffor.html +++ /dev/null @@ -1,113 +0,0 @@ -

HTML attribute: for

The for attribute is an allowed attribute for <label> and <output>. When used on a <label> element it indicates the form element that this label describes. When used on an <output> element it allows for an explicit relationship between the elements that represent values which are used in the output.

-

Usage

-
-

When used as an attribute of <label>, the for attribute has a value which is the id of the form element it relates to.

-

html

-
<label for="username">Your name</label> <input type="text" id="username" />
-
-

When used as an attribute of <output>, the for attribute has a value which is a space separated list of the id values of the elements which are used to create the output.

-

html

-
<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>
-
-
-
-

Examples

-

See examples of usage on the element pages for <label> and <output>.

-

Specifications

-
- - - - - -
Specification
HTML Standard
# attr-label-for
HTML Standard
# attr-output-for
-

Browser compatibility

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariWebView AndroidChrome AndroidFirefox for AndroidOpera AndroidSafari on IOSSamsung Internet
for10≤184No1174.41841171.0
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariWebView AndroidChrome AndroidFirefox for AndroidOpera AndroidSafari on IOSSamsung Internet
for1121Yes15≤44.418414≤3.21.0
-

html.elements.label.for

-

BCD tables only load in the browser

-

html.elements.output.for

-

BCD tables only load in the browser

-

- © 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
- https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/for -

-
-- cgit v1.2.3