471,605 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

Validation problems

1
Hi,

Anyone have a minute to look at
http://people.dsv.su.se/~esbj-lju/itp-uppgift2.html

I've tried to validate it but I dont understand what's wrong.

Cheers
Esbjörn
email removed for your protection
Oct 11 '07 #1
2 1017
numberwhun
3,503 Expert Mod 2GB
Hi,

Anyone have a minute to look at
http://people.dsv.su.se/~esbj-lju/itp-uppgift2.html

I've tried to validate it but I dont understand what's wrong.

Cheers
Esbjörn
email removed for your protection
You are missing something in your header. It should look like this:

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
  5.  
The part you were missing was the: "<?xml version="1.0" encoding="UTF-8"?>", which begins the doctype statement.

Granted, there are 17 other errors that need to be corrected, but that got you past the total failure.


Regards,

Jeff
Oct 11 '07 #2
drhowarddrfine
7,435 Expert 4TB
The part you were missing was the: "<?xml version="1.0" encoding="UTF-8"?>", which begins the doctype statement.
Jeff
No, the xml declaration should not be used because only modern browsers will handle it properly and IE won't.

I assume the 'problem' you are talking about is that the page is served as text and the html is not being rendered. The reason is that your server is set to serve the page as 'text/plain' rather than 'text/html'.
Oct 11 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

21 posts views Thread by Stefan Richter | last post: by
67 posts views Thread by Scott Meyers | last post: by
41 posts views Thread by Gérard Talbot | last post: by
16 posts views Thread by Hosh | last post: by
reply views Thread by Brian Conway | last post: by
2 posts views Thread by Rafael Veronezi | last post: by
reply views Thread by dhurwitz | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.