CSS code snippet – How to insert icons pseudo content?
.css:after { content: "\86"; color: red; } .css.char:after { content: "†"; color: blue; } .data:after { content: attr( data-icon ); } .js:after { content: attr( data-icon ); } .red:after { color: red; } .blue:after { color: blue; }