How To Use A HTML Attributes Repeater
Last Update: February 18, 2026
Core / Global HTML Attributes
These can go on almost any element.
Custom Data Attributes
Used heavily for JS, tracking, UI state, analytics. WordPress does not restrict data-* attributes.
Accessibility (ARIA) Attributes
Common and encouraged
Link (<a>) Attributes
Very common in WordPress content and menus:
Combined example:
Image (<img>) Attributes
WordPress adds many automatically, but you can add others:
Form & Input Attributes
Common for forms, search, login, and plugins:
Media (<video>, <audio>, <iframe>) Attributes
Iframes (common for embeds)
SEO & Metadata-Related Attributes
Microdata example:
Performance & Loading Attributes
CSS / JS Hook Attributes
(Note: role is ARIA-related but often used as a JS hook.)
Table & List Attributes
Summary (High-Value Attributes in WordPress)
Most commonly used in real WordPress sites:

