html 验证错误 -- 元元素不允许作为正文的子元素

html validation errors -- element meta not allowed as child of body

我是一个新手,正在尝试使用 w3 验证器验证一个简单的 html 页面,但是 运行 遇到了错误(见下文),这似乎表明我的正文部分在它之前开始做。有什么建议吗?

<!DOCTYPE html>
  <html>

    <head>
      <title>indexName</title>
      <meta charset="utf-8">
      <meta name=“author” content=“My Name”>
      <link rel="stylesheet" href="style.css">
    </head>

    <body>
      <h1>My Name</h1>
      <ul>
        <li> <a href=traceroute.png>traceroute</a> </li>
        <li> <a href=command.png>command</a> </li>
        <li> <a href=document.docx>document</a> </li>
        <li> <a href=spreadsheet.xlsx>spreadsheet</a> </li>
        <li> <a href=database.accdb>database</a> </li>
      </ul>
    </body>

  </html>

错误:

Element meta name=“author” content=“my not allowed as child of element body in this context. (Suppressing further errors from this subtree.) From line 6, column 5; to line 6, column 51 f-8">↩ ↩ <

Stray end tag head. From line 8, column 3; to line 8, column 9

Start tag body seen but an element of the same type was already open. From line 10, column 3; to line 10, column 8

End tag for body seen, but there were unclosed elements. From line 20, column 3; to line 20, column 9

Unclosed element meta name=“author” content=“silvia”. From line 6, column 5; to line 6, column 51

      <meta name=“author” content=“My Name”>

看看这些引号是如何卷曲的?你的文本编辑器以一种对网络代码没有帮助的方式为你排版。将它们更改为 "" 引号,您应该可以开始了。

      <meta name="author" content="My Name">