Contents

[edit]

OpenSP: No document type declaration; will parse without validation

[edit]

Cause:

No document type specified at the begin of the document.

[edit]

Example:

Good
<title>my_title</title>
<body>my_body</body>
Good
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>my_title</title>
<head> ...
[edit]

Solution:

Add a doctype at the begining of the HTML

[edit]

References:

Retrieved from "http://www.htmlpedia.org/wiki/Sp_187"