Trên trang này

Trang này chưa có bản tiếng Việt, nội dung bên dưới là bản tiếng Anh. Xem trang tiếng Anh

Tags input

What Tags input gives you and what your team does.

Conformance

Tags input meets WCAG 2.2 level AA when used as described on these pages.

Keyboard

  • Enter adds the typed text.
  • Backspace in an empty field selects the last tag; again removes it.
  • Arrow keys move between tags.

What Tags input gives you

  • Each remove button has a name (“Remove wholesale”).
  • The text-field focus on the whole field.

What your team does

  • Give the field a visible label.
  • Say what a tag should hold, such as “one email per tag”.

WCAG criteria

Criterion Level How
2.1.1 Keyboard A Add and remove by keyboard
4.1.2 Name, Role, Value A Remove buttons are named