我不知道如何真正解释它,但是每当我使用下面的锚标记时,最后一个元素仍然带有下划线并且可以单击。我是一个初学者,所以我非常确定为什么会这样,我什至看过视频以了解如何删除该链接,但是我不知道该如何描述更多。
<body>
<a href = "www.google.com </a>"
<p class= "Google"> Google </p>
<p> The website above is google. </p>
</body>
</html>```
![End Result](https://imgur.com/a/DTCo99i)
尝试一下:
<body>
<a href="www.google.com">
<p class="google"> Google </p>
</a>
<p> The website above is google. </p>
</body>
您的代码中有错字。以下是正确的版本。
<body>
<a href="www.google.com">Google</a>
<p> The website above is google. </p>
</body>
</html>