I tried to check my html5 document, although I am getting some invalid markup errors.
My code is as follows:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>index</title> <meta name="description" content=""/> <link rel="stylesheet" href="assets/css/base.css"> <script type="text/javascript" src="assets/js/jquery-1.6.1.min.js"></script> <script type="text/javascript" src="assets/js/jquery-ui-1.8.16.custom.min.js"></script> </head>
Errors:
Line 7, Column 16: application/xhtml+xml is not an appropriate Content-Type for a document whose root element is not in a namespace. **<html lang="en">** Line 7, Column 16: Unnamespaced element html not allowed in this context. (Suppressing further errors from this subtree.) **<html lang="en">** Line 16, Column 3: required character (found h) (expected l) **</head>**
Some expert recommendations will be highly appreciated.
Thanks Patrick
source share