我尝试在 HTML 网页上添加徽标(图标),但徽标未显示。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Best Restaurants in India -Zomato</title>
<link ref="icon" href="https://upload.wikimedia.org/wikipedia/commons/7/75/Zomato_logo.png">
<link rel="stylesheet" href="style.css">
</head>
<body>
</body>
</html>
这段代码有什么问题?
rel="icon"
您只是使用了错误的属性。