FontAwesome Frequently Asked Questions
<head>:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.0/css/all.min.css">Or install via npm: npm install @fortawesome/fontawesome-freecolor property for color, font-size or fa-xs/fa-sm/fa-lg/fa-2x~fa-10x classes for size. Example:<i class="fa-solid fa-heart" style="color:red; font-size:24px"></i>fa no longer auto-completes; must use fa-solid/fa-regular/fa-brandsfa-car → fa-car-side)fa), or renamed/removed icons. Before upgrading, scan codebase for fa fa- classes with automated scripts to generate a complete inventory.fas→fa-solid) and many icon renames. Step-by-step migration is safer.aria-hidden="true" to decorative iconsrole="img" and aria-label="description" to functional icons<title> description to SVG iconstabindex="0")If you couldn't find your answer in the FAQ above, you can get help through these channels: