link 至 html 中的卡片

link to the card in html

我需要在文本中放置一个 link href="/favourites_new/",这样当我点击卡片(而不是文本本身)时,我可以转到另一个页面。这是我的简单代码

<div class="left-card-parent">
    <div class="left-card">
        <h1 class="left-card-h2"> &#11013;</h1>
            <p>selected</p>
    </div>
</div>

我该如何解决我的问题?

将所有代码添加到标签中 例如

<a href=your link here>
<div class="left-card-parent">
    <div class="left-card">
        <h1 class="left-card-h2"> &#11013;</h1>
            <p>selected</p>
    </div>
</div>
</a>