murattunalı.
Reading

F

Field data is the sum of performance measurements experienced by real users on real devices and real networks. Performance

What is a focus trap?

A focus trap is when keyboard focus enters a region and cannot leave it again, and WCAG prohibits it explicitly at level A.

A trap is the harshest defect there is for a keyboard user: it makes the page unusable. The user tabs forward, enters a layer or an embedded component, and cannot get out; they keep pressing Tab but the focus keeps circling the same few elements. The only remedy left is reloading the page — that is, losing everything done up to that point.

WCAG criterion 2.1.2 “No Keyboard Trap” prohibits this directly and sits at level A. A trap is therefore a violation at the baseline — even a conformance claim with a deliberately narrow scope cannot tolerate it.

The most frequent source is layer and dialog implementations. A good modal WANTS to keep focus inside — not letting Tab reach the content behind is the correct behaviour. But when that containment is built without leaving a way out, it turns into a trap.

  • Right: focus cycles inside the layer, Escape closes it, and on closing the focus returns to the element that opened it.
  • Wrong: focus cycles inside the layer and Escape does nothing.
  • Wrong: there is a close button, but the tab order never reaches it.
  • Wrong: embedded third-party content swallows the focus and does not give it back.

The last item is the hardest, because the control is not yours. An embedded video player, map or payment frame may take the focus and not release it. The remedy there is to place skip links before and after the embedded content, or to load the content only on the user’s request.

There is one test method and it takes ten seconds: open every layer, press Tab repeatedly, and make sure you can get out. Try Escape too. If you cannot get out, you have found the defect.

The trap also has a soft form, and it is more common: focus can technically leave, but the way out is so long that it is unusable in practice. If getting out of a layer with fifty elements takes fifty presses of Tab, the user can leave but will not.

That is why a good layer does more than leave an escape route — it keeps the escape SHORT: Escape always works, and the close button sits somewhere reachable at the start or the end of the focus order.

One final distinction: CONTAINING focus in a region and TRAPPING it are not the same thing. In a modal dialog, focus cycling inside is the correct behaviour and exactly what accessibility calls for. A trap is the user being unable to leave of their own accord — containment and escape are separate matters.

If you want to know whether your site meets these criteria, the web accessibility audit measures every template against WCAG 2.2 point by point, fixes problems at the source and documents the result.

Accessibility

Font subset A font subset is a font file regenerated with only the characters that are needed. Multilingual

G

GEO (Generative Engine Optimization) is the work of increasing the likelihood that a site is chosen as a source in the answers generated by AI systems. Answer engines

Global ACI (Global Accreditation Cooperation Inc.) is the organization that runs the international mutual recognition arrangement of accreditation bodies and replaced IAF, which ceased operations on January 1, 2026. Certified manufacturing

H

hreflang is the markup that declares a page’s different language and region versions to search engines. Multilingual

I

Index (search index) The index is the database in which a search engine keeps the pages it has decided to store out of those it crawled, and the only place it selects search results from; it is also called the search index. Being found on Google

IndexNow is an open protocol that tells search engines immediately that a page has changed. Answer engines

INP (Interaction to Next Paint) is the time from a user interaction until the page responds visually, and Google counts anything under 200 milliseconds as good. Performance

ISO/IEC 17025 is the international standard that sets the requirements for the competence, impartiality and consistent operation of testing and calibration laboratories, and on which laboratory accreditation is based. Certified manufacturing

J

JSON-LD (JavaScript Object Notation for Linked Data) is a structured data format that declares a page’s meaning in a machine-readable form without changing the page’s appearance at all. Answer engines

L

Language tag (BCP 47) A language tag is the standard coding form that tells machines which language a text is in. Multilingual

LCP (Largest Contentful Paint) is the paint time of the largest content element in a page’s visible area, and Google counts anything under 2.5 seconds as good. Performance

Live region A live region is an area of a page whose changes a screen reader has to announce to the user. Accessibility

llms.txt is an optional file placed in a website’s root directory that summarises, in Markdown, what the site is about and where its most important pages are for language models. Answer engines

Locale A locale is the setting that defines a user’s language and region together and determines the formatting rules. Multilingual

Localisation (Localization) is adapting content to the culture, habits and search language of a target market; it is a wider undertaking than translation. Multilingual

M

Mobile-first indexing means that Google bases indexing and ranking of a page on the version of the page shown to its smartphone crawler. Certified manufacturing

N

noindex is a directive asking that a page not be added to a search engine’s index, given either with the robots meta tag inside the page or with the server’s X-Robots-Tag response header. Being found on Google

R

Redirect chain A redirect chain is when an address reaches its final address not in a single hop but by passing through more than one redirect; for example, if an old address is redirected first to an intermediate address and from there to the final address, there is a two-hop chain. Site migration

Reflow A reflow is the browser recomputing the positions and sizes of elements on a page after a change. Performance

Relative luminance is the value expressing a colour’s perceived lightness between 0 and 1, and it is the basis of the contrast ratio calculation. Accessibility

S

Screen reader A screen reader is assistive technology that turns on-screen content into speech or braille output and lets the user navigate by keyboard. Accessibility

Search Console is a free service from Google for monitoring a site’s status in Google Search and for seeing and fixing its problems. Being found on Google

Semantic HTML means choosing each element for its meaning rather than its appearance — a heading element for a heading, a button element for a button, a list element for a list. Accessibility

Sitemap A sitemap is a file, usually written in XML, that lists the addresses of a site’s pages and, optionally, their last modification dates for search engines in a single file. Being found on Google

Social compliance audit A social compliance audit is the examination by an independent auditor of working conditions, occupational health and safety and business ethics at a production site against a code of conduct. Certified manufacturing

Soft 404 A soft 404 is a page that shows visitors “page not found” or empty content but returns a 200 (success) code from the server instead of an error code; Google treats these pages as error pages and does not index them. Site migration

Structured data is an additional layer that labels a page’s content with a standard vocabulary machines can understand. Answer engines

T

Text expansion is the same content being of different lengths in different languages, and the layout having to flex accordingly. Multilingual

TLS certificate lifetime is the period from the day the certificate that provides a site’s HTTPS connection is issued to the day its validity ends. Certified manufacturing

Total cost of ownership is the sum of all the costs of buying an asset or service and using it over its service life. Certified manufacturing

Transaction certificate A transaction certificate is the document, issued by a certification body under Textile Exchange standards, that shows a specific delivered consignment of goods is certified. Certified manufacturing

Translation memory A translation memory is a database that stores previously translated sentences and suggests them when the same or a similar sentence comes up again. Multilingual

TTFB (Time to First Byte) is the time between the browser sending a request and receiving the first byte from the server. Performance

U

URL inventory A URL inventory is a single list that gathers every address of a site that search engines know — current pages, address variants and old addresses; in a site redesign or migration, the redirect map is derived from this list. Site migration

W

WCAG (Web Content Accessibility Guidelines) is the international standard published by the W3C that defines the accessibility of web content through testable success criteria. Accessibility

X

x-default is a special hreflang value declaring the default page to show when no language version matches the user’s language. Multilingual

SOURCES