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
<html>
   <head>
      	<title>my_title</title>
      	...
   </head>
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 before the <html> tag.

[edit]

References:

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