DEV Community

manu
manu

Posted on • Edited on

Yes, these are emoji buttons

Take a look at this horrid button in CSS. Click on it.

<button style="padding:0;border:0;background:transparent;outline:0;font-size: 100px" onclick="if(this.innerText=='🔲'){this.innerText='🔳'}else {this.innerText='🔲'}">🔲</button>
Enter fullscreen mode Exit fullscreen mode

The purpose of this post is to let you know that you can use emojis in JavaScript, CSS, and HTML.

Top comments (0)