HTML,<a> tag is not working

时间:2018-06-23 12:57:29

标签: html

I have created a link to YouTube using tag in HTML, but it doesn't work when I click on the text. Here is the code:

<div>
   <p>Source to <a href="https://www.youtube.com/">
   <span style="color:red">Youtube</span></a>.</p>
</div>

Thanks for any help for the answers

3 个答案:

答案 0 :(得分:1)

它必须是href而不是“ herf”。只是普通的语法错误或错字。

答案 1 :(得分:0)

发现差异:D

<a herf="https://www.youtube.com/">Youtube</a>
<a href="https://www.youtube.com/">Youtube</a>

答案 2 :(得分:0)

点击here 观看我的YouTube视频。

Click <a href="http://www.youtube.com">here</a>to view my YouTube video.

这对您有帮助

https://www.w3schools.com/tags/tag_a.asp