Over the past decade, notification badges have become so ubiquitous in web apps that I suspect they’re now deeply embedded in our psyches. The little red notification icon has in a short period used its Pavlovian power to tunnel into and damage our brain chemistry. Cult leaders, torturers and Jungian mystics should consider incorporating it into their semiotic toolbox.






Suffice to say, if you’re a web developer or designer today, notification badges are likely to come up for you eventually. Here are some samples you can use as a starting point.
A circle
A basic “click me” command. Your brain processes it before you’re even conscious of it.

<span class="badge" style="
position: relative;
top: -7px;
right: 4px;
padding: 0px 4px;
border-radius: 100%;
background: #ff8e0d;
color: white;
"> </span>
You should position with rem rather than pixels; I’m just mocking it up with px.
A circle with a dot
A variation used by Discord, LinkedIn, and others.

This can be achieved with an inner badge, or even by using a text character like a period or bullet point.
The almighty number

This can be inserted as plain text into the badge. You will need to play with the padding and sizes to accommodate it.
Text

Not used as much these days, but cute. It’s the same span, with the padding and the border-radius changed.
<span class="badge" style="
position: relative;
top: -7px;
right: 7px;
padding: 2px 2px;
border-radius: 20%;
background: #ff8e0d;
color: white;
">NEW</span>