It's been about a year since I played with this "web page authoring lark".
So I've written the first (hopefully of many) pages. It's previously been my habit to run the file(s) through the w3c validator to make sure that I'm standards compliant.
If I locate the validator page with firefox and then run the file through it tells me that I'm using valid xhtml 1.0 (strict), but if I do exactly the same using Opera 8.01 it tells me that
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 reliably validate the document. I'm falling back to the "UTF-8" encoding and will attempt to perform the validation, but this is likely to fail for all non-trivial documents.
Below are the results of attempting to parse this document with an SGML parser.
1. Line 1, column 0: end of document in prolog
whereas my xml and doctype declaration (and the opening html tag) look like this:-
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
So what am I doing wrong? Surely if the html/xhtml is valid (for the W3C) then it should also be correct for both browsers?
p.s. Oh and I'm not sure whether it's relevant, but I'm one of those nasty suspicious "software communists" i.e. a linux user. currently using SuSE 9.3 pro with KDE 3.4