XML代码的浏览器错误:“格式不正确”

时间:2015-12-02 13:44:21

标签: html xml

我有以下XML代码。每次将此代码加载到浏览器中时,我都会得到not well-formed。可能是什么问题?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
      <head>
        <meta http-equiv=Content-Type content="text/html;charset=UTF-8">
        <title>Auth form example</title>
      </head>
      <body>
        <form action="/login" method="post">
          <table>
            <tr>
              <td>Username: <input type="text" name="username"/></td>
            <tr>
              <td>Password: <input type="text" name="password"/></td>
            <tr>
              <td><input type="submit" value="Login"></td>
          </table>
        </form>
      </body>
    </html>

1 个答案:

答案 0 :(得分:1)

四件事:

  1. fq = function(w) { S = 1 for (t in 1:tempo) { St = 0 for (i in 1:ntitoli) { St = St + w[i]*df[t,i] } S = S*St } -S } 都没有结束标记。
  2. <tr>应为<meta http-equiv=Content-Type content="text/html;charset=UTF-8">
  3. <meta http-equiv=Content-Type content="text/html;charset=UTF-8" />应为<input type="submit" value="Login">
  4. <input type="submit" value="Login" />应为http-equiv=Content-Type。引用缺失。
  5. 最终工作

    http-equiv="Content-Type"