Skip to content

Focusable Elements — Native and Custom Focusable Elements

DodaTech Updated 2026-06-28 2 min read

In this tutorial, you will learn about Focusable Elements. We cover key concepts, practical examples, and best practices to help you master this topic.

Native HTML elements like links, buttons, and form controls are focusable by default, while custom elements need tabindex and keyboard handlers for focusability.

In this tutorial, you'll learn which elements are focusable and how to make custom elements keyboard accessible in Keyboard Navigation.

What You'll Learn

By the end of this lesson, you'll know the native focusable elements, how to make non-focusable elements keyboard accessible, and when to use each approach.

Why It Matters

Only focusable elements can receive keyboard input. Incorrectly assuming an element is focusable leads to keyboard traps.

Real-World Use

Doda Browser's custom toolbar buttons use tabindex="0" and role="button" to ensure they are keyboard accessible.

Focusable Elements Tree

flowchart TD
  A[Focusable Elements] --> B[Native]
  A --> C[Custom]
  B --> D[]
  B --> E[