{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/html.global_attributes.autofocus",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "bcd",
  "bcdFeature": {
    "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"
        ]
      }
    ]
  },
  "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
      }
    }
  }
}