Topic: CSS validation question... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=10863" title="Pages that link to Topic: CSS validation question... (Page 1 of 1)" rel="nofollow" >Topic: CSS validation question... <span class="small">(Page 1 of 1)</span>\

 
Michael
Maniac (V) Mad Scientist

From: *land
Insane since: Nov 2000

posted posted 11-30-2002 19:24

So i've spent the last week trying to learn CSS.
Slow goin'... but I think I'm doin' okay.

So I coded up a little page.... hopped over to the validator to check the CSS...
When it kicks back the results, it says....



So I'm glad that it says there are no errors.....
But what does that other bit mean?
And what is a document parse tree?
I've looked around for the answers.... searched google n' such. No luck thus far.
Perhaps I'm a little slow and I've read over it somewhere, but any light that some of you could shed on this would be nice.


FAQs n' Bits: Michael

Michael
Maniac (V) Mad Scientist

From: *land
Insane since: Nov 2000

posted posted 11-30-2002 19:31

Almost forgot...
When I follow the link to "valid html" and attmpt to validate,
it says this...

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.
And I even tried to autodetect it using the algorithm defined in Appendix F of the XML 1.0 Recommendation.

Since none of these sources yielded any usable information, I will not be able to validate this document. Sorry. Please make sure you specify the character encoding in use.



any thoughts on that as well?


FAQs n' Bits: Michael

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 11-30-2002 20:21

I'd say that the CSS validator message means your CSS code is perfect, but that it can't say anything about your HTML's validity and you should go to the HTML validor to check that.

As for the HTML validator - to have a valid XHTML document you should have a doctype and stuff at the beginning of the file, like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
&nbsp;&nbsp;&nbsp;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

and a META tag which tells the browser (and validator) which character set you're using on the pages can't hurt either:

<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
</head>

So try adding these lines, I'm pretty sure it'll work then.

Michael
Maniac (V) Mad Scientist

From: *land
Insane since: Nov 2000

posted posted 11-30-2002 20:39

hey, thanks for the reply man...
Grumble shot me a message on Q and pretty much said all the same things.
So I went back through and fumbled around a bit...
got it validated with no errors for both xhtml and css now.

=)

thanks.


FAQs n' Bits: Michael

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

posted posted 12-01-2002 18:26

I suggest removing the ?xml prolog since the encoding is included through the meta tag. You can do the other way too, but the ?xml prolog will make IE6 use the wrong box-model.



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


« BackwardsOnwards »

Show Forum Drop Down Menu