User avatar
malevolent dictator for life @astrid@fedi.astrid.tech
2y
did you know? it is not uncommon in modern webdev to use tags to put icons in your html. technically it’s semantically correct to use <span> but do webdevs care? probably not.

the most cursed way to put icons in though, imo, is google’s material icons, which you can insert into your html with a bit of css and this:
```
<span class="material-icons orange600">face</span>

```


to put in a face. how does it work? “face” is registered as a ligature. i’m pretty sure i remember using `<i>face
` in a framework somewhere too.

to be fair, this does have the benefit of being screenreadable. however, it is still Cursed As Hell.

https://icons.getbootstrap.com/#usage https://developers.google.com/fonts/docs/material_icons#using_the_icons_in_html
5
0
2
0
User avatar
pancakes nonbinary_cat @pancakes@meow.company
2y
@astrid font awesome also does this 👍
0
0
0
0