我有以下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>
答案 0 :(得分: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
}
都没有结束标记。<tr>
应为<meta http-equiv=Content-Type content="text/html;charset=UTF-8">
<meta http-equiv=Content-Type content="text/html;charset=UTF-8" />
应为<input type="submit" value="Login">
。<input type="submit" value="Login" />
应为http-equiv=Content-Type
。引用缺失。最终工作
http-equiv="Content-Type"