简体   繁体   English

如何在 html 中添加指向文本的链接(因此当您单击时会转到某个网站)

[英]How to add link to text in html (so when you click you go to a website)

I have the bellow code:我有以下代码:

<div id="twoBtn" class="mainContainer"><!--two buttons-->
<p>Find us on the app store, or send us an email bellow!</p>
<!--<a href="#" id="btn1" class="button1">
    <img src="Resources/images/apple.png">
    <span>App Store</span>
  </a>-->
<a href="#" id="btn2" class="button2">
    <!--<img src="Resources/images/android.png">-->
    <span>Contact us</span>
  </a>

I would like the app store to be a link the user can click on.我希望应用商店成为用户可以点击的链接。 How can I do this?我怎样才能做到这一点?

The solution to your question would be您的问题的解决方案是

<div id="twoBtn" class="mainContainer"><!--two buttons-->
<p>
  Find us on the 
    <a href="#your_link" >
      app store
    </a>
  , or send us an email bellow!
</p>
<a href="#" id="btn2" class="button2">
<!--<img src="Resources/images/android.png">-->
    <span>Contact us</span>
</a>

It will make your "app store" a link and you can ssign classes and IDs to this a tag.它会使你的“应用程序商店”的链接,你可以SSIGN类和ID这a标签。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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