如何修复“杂散末端标签头”。和“已看到开始标签正文,但已经打开了相同类型的元素。”在HTML中

时间:2019-03-29 04:51:43

标签: html

多个HTML检查器都给了我这些错误,但是我不明白如何得到它们或如何修复它们。任何帮助将不胜感激。

<!DOCTYPE html>
<html lang="en">

  <head>
    <meta name="author" content="text">
    <meta name="description" content="text">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="keywords" content="text">
    <link rel="icon" href="image.jpg" type="image/x-icon">
    <link href = "style.css" rel = "stylesheet">
    <title>text</title>
    <a href="./picturepage.html">text</a>
  </head>

  <body>

1 个答案:

答案 0 :(得分:0)

  • head的结束标记是可选的
  • body的开始标签是可选的
  • a内禁止使用head元素

因此,您的a元素隐式结束了head并开始了body,因此您的</head>标签没有匹配的开放head元素。