我怎么做到这样我的标题不再是一个链接? [英] How do I make it so my heading stops being a link?

查看:73
本文介绍了我怎么做到这样我的标题不再是一个链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在学习如何建立一个网站,但在我这样做时,我添加了一个段落的链接。问题是我后来添加了一个标题,但该段落的最后一个链接添加到我的新标题中,我不知道如何删除它。

以下是我制作的代码:



So I was learning how to make a website but while I was doing that I added a link to a paragraph. The problem was that I later added a heading but the last link on the paragraph added itself to my new heading and I don't know how to remove it.
Here's what the code I made looks like:

<div>
           <p>This is the main website I used to learn what I know now:<a href="https://www.w3schools.com/html/default.asp" target="_blank"/>W3schools</p>
       </div>
   </main>
   <hr>
       <article>
           <section>
               <h2>What I've learned.</h2>
                   <p><a href="https://www.youtube.com/embed/watch?v=dQw4w9WgXcQ" target="_blank"/>This is what you call an iframe.
                   If it does not work, click me.</p>
                   <iframe width="40%" height="50%"
                       src="https://www.youtube.com/embed/watch?v=dQw4w9WgXcQ">
                   </iframe>
           </section>
       </article>





我的尝试:



我已经查了很多次,甚至到了第二页,但仍然没有答案。我试图将它们分开,但它仍然存在,我不知道如何解决它。我可以得到任何帮助。



What I have tried:

I've looked it up so many times and even went to the second page and there are still no answers. I tried to separate them but it's still there and I have no clue how to solve it. Any help I can get is appreciated.

推荐答案

你的问题很不清楚;但是,只要查看您的代码,我就可以看到您永远不会关闭您的代码。



它应该是

< a href =someurl>文字我希望用户看到链接< / a>



您没有关闭标签。
Your question is very unclear; however, just looking at your code I can see that you never close off your a tag.

It should be
<a href="someurl">Text I want user to see linked</a>

You don't have the closing a tag.


这篇关于我怎么做到这样我的标题不再是一个链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆