3 ms·
There is another disadvantage of this approach: many times, icons carry no semantic information at all, just being a design thing. Therefore they are most often
by BerislavLopac 15y ago
There is another disadvantage of this approach: many times, icons carry no semantic information at all, just being a design thing. Therefore they are most often (and most correctly) implemented as a background image on a certain HTML element which does carry semantic meaning, like a link or a button.
This approach introduces icons within the semantic markup and/or content, unless they're added by some script, which kinda beats the purpose.
- erikpukinskis 15y agoNot true. You can use :before and :after pseudo-elements.
- BerislavLopac 15y agoThat's a good point, true. But I never really liked content injection, via CSS or Javascript, anyway. :)