The w3 site, http://www.w3.org/QA/2002/04/valid-dtd-list.html recommends using this as a template for xhtml:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>An XHTML 1.0 Strict standard template</title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
</head>
<body>
<p>… Your HTML content here …</p>
</body>
</html>
Copy paste this into a newly created .html page – using File, New, Other, Web, HTML (Basic Templates). None of the html validates. The first error is “Unknown tag (html)”.
Is MyEclipse unable to find the dtd or something?
Versions:
MyEclipse Enterprise Workbench
Version: 5.1.1 GA
Build id: 20070302-5.1.1-GA
Eclipse-3.2.2
(Linux)