.🍔

The landing page of SitePoint

Yep — css class names can contain emoji ✨ According to the CSS Specification, it's totally fine to name your mobile menu as an actual burger.

Be aware that this fun has a side effect — the same emoji can be rendered with quite a different meaning on different devices and someone reading your code could get the wrong message.

The pistol emoji on different platforms

Tip: There is a great write-up by Dillon de Voor on How to deal with emoji parsing in javascript.