Topic: Cannot validate html file... Pages that link to <a href="https://ozoneasylum.com/backlink?for=9683" title="Pages that link to Topic: Cannot validate html file..." rel="nofollow" >Topic: Cannot validate html file...\

 
Author Thread
Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

IP logged posted posted 09-23-2003 05:15 Edit Quote

Hi, guys. how are you?
I am trying to validate my html file. But some reason, I cannot do it at all.
I went to w3.org. Then click *brows* to navigate to my html file. Then clicked *Validate file*. But it said:

quote:
I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to validate the document. The sources I tried are:

The HTTP Content-Type field.
The XML Declaration.
The HTML "META" element.



I don't understand why???
Please help me...


Hiroki Kozai

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

IP logged posted posted 09-23-2003 05:53 Edit Quote

Hiroki: The error message is pretty clear - you don't have the pages encoding declared.

If it is XHTML use this (its called a XML declaration) at the very top of your document:

<?xml version="1.0" encoding="UTF-8"?>

or add this in your head tags:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

but see this discussion:
http://development.gurusnetwork.com/discussion/thread/2252/

because the XML declaration will send IE into Quirks Mode

___________________
Emps

FAQs: Emperor

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 09-23-2003 06:22 Edit Quote

The simple answer is to try the meta tag that Emps mentioned and see if it solves the problem.

Character encodings are a complicated topic that have caused me many hours of confusion.

Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

IP logged posted posted 09-23-2003 06:25 Edit Quote

Thanks, Emp.
Cheers.

Hiroki Kozai

Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

IP logged posted posted 09-23-2003 07:48 Edit Quote

Hi, Slime. thanks for your reply.
I put <?xml version="1.0" encoding="UTF-8"?> into my html file.
Then it worked fine.
Thanks a lot.

Hiroki Kozai



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu