html 未找到错误

html Not Found error

我只是html的学生,我只是写了一个简单的代码来学习html.. 我有一个问题。

如果我写代码

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>html practice</title>
</head>
<body>
    move to <a href=google.com" target="_blank"><strong>google</strong></a>
</body>
</html>

这个link 行不通

但是当我将代码更改为 <a href="https://www.google.com" target="_blank"> 时,效果非常好。

不知道为什么,很好奇..请大家帮帮我...

这可能是你的问题

<a href=google.com" target="_blank"><strong>google</strong></a>

注意 href???它在开头缺少 "。它应该是:

<a href="google.com" target="_blank"><strong>google</strong></a>

你错过了两件事: 在您错过的 href 中:
- 引用
- http:\
应该是这样的:

<a href="http:\google.com" target="_blank">

您需要在 google.com 前面加上 http:// 或 https://,否则浏览器会认为它是您的网络服务器本地保存的文件,而不是外部站点 link .