{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/autofocus",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "web-feature",
  "webFeature": {
    "id": "autofocus",
    "name": "autofocus",
    "description": "The autofocus HTML attribute gives focus to an element on page load.",
    "group": "other",
    "groupName": "other",
    "spec": "https://html.spec.whatwg.org/multipage/interaction.html#the-autofocus-attribute",
    "baseline": "high",
    "baselineLowDate": "2015-07-29",
    "baselineLowDay": 16645,
    "baselineHighDate": "2018-01-29",
    "compatCount": 5,
    "cats": [
      "api",
      "html"
    ],
    "compatKeysSample": [
      "api.HTMLElement.autofocus",
      "api.MathMLElement.autofocus",
      "api.SVGElement.autofocus",
      "html.global_attributes.autofocus",
      "svg.global_attributes.autofocus"
    ],
    "s": {
      "chrome": {
        "v": "1",
        "d": 14224
      },
      "chrome_android": {
        "v": "18",
        "d": 15518
      },
      "edge": {
        "v": "12",
        "d": 16645
      },
      "firefox": {
        "v": "1",
        "d": 12731
      },
      "firefox_android": {
        "v": "4",
        "d": 15062
      },
      "safari": {
        "v": "4",
        "d": 14403
      },
      "safari_ios": {
        "v": "3.2",
        "d": 14702
      }
    }
  },
  "relatedBcdFeatures": [
    {
      "id": "api.HTMLElement.autofocus",
      "cat": "api",
      "mdn": "API/HTMLElement/autofocus",
      "spec": "https://html.spec.whatwg.org/multipage/dom.html#dom-fe-autofocus",
      "st": 1,
      "wf": "autofocus",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "79",
          "d": 18240
        },
        "firefox": {
          "v": "110",
          "d": 19402
        },
        "safari": {
          "v": "15.4",
          "d": 19065
        },
        "edge": {
          "v": "79",
          "d": 18276
        },
        "chrome_android": {
          "v": "79",
          "d": 18247
        },
        "firefox_android": {
          "v": "110",
          "d": 19402
        },
        "safari_ios": {
          "v": "15.4",
          "d": 19065
        },
        "webview_android": {
          "v": "79",
          "d": 18247
        },
        "webview_ios": {
          "v": "15.4",
          "d": 19065
        },
        "samsunginternet_android": {
          "v": "12.0",
          "d": 18432
        },
        "opera": {
          "v": "66",
          "d": 18268
        },
        "opera_android": {
          "v": "57",
          "d": 18351
        },
        "oculus": {
          "v": "8.0",
          "d": 18302
        },
        "ie": {
          "p": [
            "10",
            15639
          ]
        }
      },
      "notes": [
        {
          "t": "Supported for <code>HTMLButtonElement</code>, <code>HTMLInputElement</code>, <code>HTMLSelectElement</code>, and <code>HTMLTextAreaElement</code>.",
          "b": [
            "chrome",
            "firefox",
            "safari",
            "edge",
            "chrome_android",
            "firefox_android",
            "safari_ios",
            "webview_android",
            "webview_ios",
            "samsunginternet_android",
            "opera",
            "opera_android",
            "oculus",
            "ie"
          ]
        }
      ]
    },
    {
      "id": "api.MathMLElement.autofocus",
      "cat": "api",
      "mdn": "API/MathMLElement/autofocus",
      "spec": "https://html.spec.whatwg.org/multipage/dom.html#dom-fe-autofocus",
      "st": 1,
      "wf": "autofocus",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "109",
          "d": 19367
        },
        "firefox": {
          "v": "110",
          "d": 19402
        },
        "safari": {
          "v": "15.4",
          "d": 19065
        },
        "edge": {
          "v": "109",
          "d": 19369
        },
        "chrome_android": {
          "v": "109",
          "d": 19367
        },
        "firefox_android": {
          "v": "110",
          "d": 19402
        },
        "safari_ios": {
          "v": "15.4",
          "d": 19065
        },
        "webview_android": {
          "v": "109",
          "d": 19367
        },
        "webview_ios": {
          "v": "15.4",
          "d": 19065
        },
        "samsunginternet_android": {
          "v": "21.0",
          "d": 19496
        },
        "opera": {
          "v": "95",
          "d": 19389
        },
        "opera_android": {
          "v": "74",
          "d": 19429
        },
        "oculus": {
          "v": "31.2",
          "d": 19737
        }
      }
    },
    {
      "id": "api.SVGElement.autofocus",
      "cat": "api",
      "mdn": "API/SVGElement/autofocus",
      "spec": "https://html.spec.whatwg.org/multipage/dom.html#dom-fe-autofocus",
      "st": 1,
      "wf": "autofocus",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "79",
          "d": 18240
        },
        "firefox": {
          "v": "110",
          "d": 19402
        },
        "safari": {
          "v": "15.4",
          "d": 19065
        },
        "edge": {
          "v": "79",
          "d": 18276
        },
        "chrome_android": {
          "v": "79",
          "d": 18247
        },
        "firefox_android": {
          "v": "110",
          "d": 19402
        },
        "safari_ios": {
          "v": "15.4",
          "d": 19065
        },
        "webview_android": {
          "v": "79",
          "d": 18247
        },
        "webview_ios": {
          "v": "15.4",
          "d": 19065
        },
        "samsunginternet_android": {
          "v": "12.0",
          "d": 18432
        },
        "opera": {
          "v": "66",
          "d": 18268
        },
        "opera_android": {
          "v": "57",
          "d": 18351
        },
        "oculus": {
          "v": "8.0",
          "d": 18302
        }
      },
      "notes": [
        {
          "t": "Only supported on <code>SVGGraphicsElement</code>.",
          "b": [
            "firefox",
            "firefox_android"
          ]
        }
      ]
    },
    {
      "id": "html.global_attributes.autofocus",
      "cat": "html",
      "mdn": "HTML/Reference/Global_attributes/autofocus",
      "spec": "https://html.spec.whatwg.org/multipage/interaction.html#the-autofocus-attribute",
      "st": 1,
      "wf": "autofocus",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "79",
          "d": 18240
        },
        "firefox": {
          "v": "110",
          "d": 19402
        },
        "safari": {
          "v": "15.4",
          "d": 19065
        },
        "edge": {
          "v": "79",
          "d": 18276
        },
        "chrome_android": {
          "v": "79",
          "d": 18247
        },
        "firefox_android": {
          "v": "110",
          "d": 19402
        },
        "safari_ios": {
          "v": "16.4",
          "d": 19443
        },
        "webview_android": {
          "v": "79",
          "d": 18247
        },
        "webview_ios": {
          "v": "16.4",
          "d": 19443
        },
        "samsunginternet_android": {
          "v": "12.0",
          "d": 18432
        },
        "opera": {
          "v": "66",
          "d": 18268
        },
        "opera_android": {
          "v": "57",
          "d": 18351
        },
        "oculus": {
          "v": "8.0",
          "d": 18302
        },
        "ie": {
          "p": [
            "10",
            15639
          ]
        }
      },
      "notes": [
        {
          "t": "Supported for the <code>&lt;button&gt;</code>, <code>&lt;input&gt;</code>, <code>&lt;select&gt;</code>, and <code>&lt;textarea&gt;</code> elements.",
          "b": [
            "chrome",
            "firefox",
            "safari",
            "edge",
            "chrome_android",
            "firefox_android",
            "webview_android",
            "samsunginternet_android",
            "opera",
            "opera_android",
            "oculus",
            "ie"
          ]
        },
        {
          "t": "If there's no hardware keyboard connected, then the <code>autofocus</code> attribute has no effect (for example, the <code>focus</code> event doesn't fire and the element does not match the <code>:focus</code> selector).",
          "b": [
            "safari_ios",
            "webview_ios"
          ]
        }
      ]
    }
  ]
}