So I really want to stick by the W3c stuff and have done so far, had large amounts of workarounds to do and so far happy to say everything conforms. However; (<-there always one of these everywhere I go)
Code:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-gb" />
<title>Some Random Title</title>
</head>
<body>
<div>
<img src="/test.png" alt="test" />
</div>
</body>
</html>
Will pass the validator no problems all's good until I found something on w3.org which didnt add up;
http://www.w3.org/TR/REC-html40/struct/objects.html
Can you see every tag is written in capitals and to provide how bad this is just enter this code into the validator and you will see;
Code:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-gb" />
<title>Some random title</title>
</head>
<body>
<div>
<IMG src="/test.png" alt="test" />
</div>
</body>
</html>
The validator can be found here; http://validator.w3.org/
So whats the score? Why would that have bad code on there?
Kind regards
Dal
Edit: Edited by ddadmin to remove page title, as requested
Bookmarks