--- url: "https://web.dev/learn/forms/cross-platform-testing" titulek: "Test forms across devices and platforms | web.dev" h1: "Test forms across devices and platforms Stay organized with collections Save and categorize content based on your preferences." popis: "Ensure your form works with different devices, browsers, platforms, and different contexts." jazyk: "en" kanonicka: "https://web.dev/learn/forms/cross-platform-testing" drobecky: ["web.dev", "Resources", "Forms"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 03:31:49" znaku: 7219 slov: 1069 kodovani: "iso-8859-2" sha256: "47c629af8a6f2882151ab2905abb413746ae3beddb4cafa6e5f4acb64b8b0ba2" --- Test forms across devices and platforms Stay organized with collections Save and categorize content based on your preferences. You can fill out a form in many ways. People might use your form on their smartphone while standing in a crowded bus, or with a screen reader, or from an old laptop. Let's see how you can ensure your form works on different devices, and in different contexts. Ensure your form works for keyboard users A good first test to ensure your form is accessible is to fill out your form using only your keyboard. Open your form and try to navigate with the `tab` key. Is it clear what form field is currently active? To help users understand which form field is active, you can use focus indicators. [Try it out](https://codepen.io/web-dot-dev/pen/be0759d9436d84426a795a9ae399eff9). Use your `tab` key to navigate to the input. Do you see the outline when the input is active? That's the focus indicator. You can add focus indicators using the [`:focus`](https://developer.mozilla.org/docs/Web/CSS/:focus) CSS pseudo-class. `input:focus { outline: 4px solid #222; }` Learn more about [designing accessible focus indicators](https://www.sarasoueidan.com/blog/focus-indicators/). Help users navigate your form Another good test of usability and accessibility is to ensure that the logical tab order follows the visual tab order. How can you test the tab order? Tab completely through your form. Do you notice any illogical navigation jumps? Make sure the DOM order matches the visual order. Learn more about how to [ensure visual order on the page follows DOM order](/visual-order-follows-dom). Help users complete your form on touch devices Great! You made sure your form works with the keyboard. Now, let's see how you can ensure it also works on touch devices such as mobile phones. Open your form on your touch device, fill in all fields and submit the form. Did you have to tap multiple times to select a form control? The issue may be that the tap areas are too small. Make sure the [tap target size](/articles/accessible-tap-targets) of a button is at least 48px, and that each `` and `