Posts: 164
Name: James
Location: marbella & surrey
|
What's wrong with my code? ;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>blah</title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="en-uk" />
<meta name="ROBOTS" content="ALL" />
<meta name="Copyright" content="Copyright" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="description" content="home"/> <link rel="stylesheet" type="text/css" href="includes/style.css"/>
<link rel="alternate" type="application/rss+xml" title="RSS" href="feed.xml"/>
</head>
The W3C markup validator finds hundreds of errors, here's a few of the best;
1) there is no attribute "XMLNS"
2) there is no attribute "XML:LANG"
3) document type does not allow element "META" here
4) document type does not allow element "LINK" here
and my personal favorite;
5) end tag for element "HEAD" which is not open
6) document type does not allow element "BODY" here
am i missing something here?
btw: i know zip about xhtml, it was something someone else added for me.
thanks brains
;p
|