Can I use an emoji in CSS?
Yes — emojis work in any CSS property that takes a string:
.btn::before { content: "🚀 "; }Or escape the code point with \:
.btn::before { content: "\1F680 "; }Set font-family to include your OS emoji font for consistent rendering.