Back to Code Bytes
1 min read
Emojis in HTML

Description

Emojis should be wrapped in <span>, have role="img", and have an accessible description with aria-label or aria-labelledby.

Code Byte

<span role="img" aria-label="Ship it!">🚀</span>

Example

🚀 SHIP SHIP SHIP!!!