Home > Enterprise >  How do I add a link to a created icon (iconify)?
How do I add a link to a created icon (iconify)?

Time:10-09

I created two icons (code below), I need them to serve as links, to go to the main page, how do I do it?

<div > <div > <iconify-icon icon="fa:dollar" style="color: #83bf4f;" width="50" height="50"></iconify-icon> <iconify-icon icon="fa-solid:hand-holding" style="color: white;" width="70" height="70"></iconify-icon> </div>

CodePudding user response:

User Anchor tags for HYPERLINKS, like given below

    <div >
        <a href="https://www.google.com/"><iconify-icon  icon="fa:dollar" style="color: #83bf4f;" width="50" height="50"></iconify-icon></a>
        <a href="https://www.google.com/"><iconify-icon  icon="fa-solid:hand-holding" style="color: white;" width="70" height="70"></a>
        </iconify-icon>
    </div>
  • Related