codegurukool.com · Free coding tutorials & online compiler

Home › CSS Tutorial › CSS icons

CSS icons

Use symbols as icons.

Icon libraries load a font or SVG. Without libraries you can use Unicode symbols or inline SVG and size them with CSS.

Example code

<style>.i{font-size:32px;color:#e4572e;margin-right:10px}</style>
<span class='i'>&#9733;</span><span class='i'>&#9829;</span><span class='i'>&#9728;</span>

Run this code in the online editor

← CSS fontsCSS links →