简体   繁体   中英

How can I add a clickable link into this span?

please forgive if this is a dumb question, just starting to learn.

I want to make "[SURCHARGE-FREE ATM LOCATION FINDER]" clickable to go to a website. This is the line of code:

            <div><span>[SURCHARGE-FREE ATM LOCATION FINDER]</span></div>

Using

<div><span><a href="https://moneypass.com/atm-locator.html">[SURCHARGE-FREE ATM LOCATION FINDER]</a></span></div>

did not work. How can I achieve this?

    <div>
      <span>
        <a href="https://www.google.com/">
          [SURCHARGE-FREE ATM LOCATION FINDER]
        </a>
      </span>
    </div>

Here's an example that might help out. This links to the docs

<div><span><a href="https://stackoverflow.com">[SURCHARGE-FREE ATM LOCATION FINDER]</a></span></div>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM