我有以下的HTML是在Firefox中產生不匹配的標籤錯誤:不匹配的標籤,有望元
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252;">
<title>XYZ</title>
</head>
<body>
hello
</body>
</html>
由於meta tag概不關閉標籤,我不明白爲什麼我收到此錯誤。
您是否定義了doctype? – Soviut
@Soviut什麼是文檔類型?我粘貼了正在加載的完整HTML頁面並生成錯誤。 –
刪除charset = windows-1252中的';'; – j08691