Verification help?
am 27.07.2007 04:30:26 von Robert Baer
I have made a 27 line home page that W3C refuses to validate, and i
do not know how to fix it.
Line 6 is *DIRECTLY* from W3C and yet they bitch about it.
Line 12 ("..supplier of low pressure..") also gets a complaint.
Sorry about the folding, which messes with number of lines seen here.
******** start
content="Copyright (C) 2007 Petro-Gas Lift Tech LLC All rights
reserved.">
content="Customer-oriented manufacturer & supplier of low pressure
gas well dewatering lifters." />
Petro-Gas Lift Tech LLC
src="PGLtech.gif" border="0" alt="">
******* end
Re: Verification help?
am 27.07.2007 04:35:21 von Nik Coughlin
Robert Baer wrote:
> I have made a 27 line home page that W3C refuses to validate, and i
> do not know how to fix it.
> Line 6 is *DIRECTLY* from W3C and yet they bitch about it.
That's because you're using an HTML 4.0 Transitional doctype and that line
is XHTML
> Line 12 ("..supplier of low pressure..") also gets a complaint.
Those two lines have XHTML style tags. Change the end of those lines to be
> instead of />
Re: Verification help?
am 27.07.2007 04:43:31 von a.nony.mous
Robert Baer wrote:
> I have made a 27 line home page that W3C refuses to validate, and i
> do not know how to fix it.
>
Also use a proper, modern, and complete DOCTYPE. 4.0 was obsolete
sometime in the last century.
"http://www.w3.org/TR/html4/strict.dtd">
See: http://www.w3.org/QA/2002/04/valid-dtd-list.html
--
-bts
-Motorcycles defy gravity; cars just suck
Re: Verification help?
am 27.07.2007 08:20:56 von cwdjrxyz
On Jul 26, 9:30 pm, Robert Baer wrote:
> I have made a 27 line home page that W3C refuses to validate, and i
> do not know how to fix it.
> Line 6 is *DIRECTLY* from W3C and yet they bitch about it.
> Line 12 ("..supplier of low pressure..") also gets a complaint.
> Sorry about the folding, which messes with number of lines seen here.
> ******** start
>
>
>
>
>
>
>
>
> content="Copyright (C) 2007 Petro-Gas Lift Tech LLC All rights
> reserved.">
>
> content="Customer-oriented manufacturer & supplier of low pressure
> gas well dewatering lifters." />
>
> Petro-Gas Lift Tech LLC
>
>
>
>
>
>
> src="PGLtech.gif" border="0" alt="">
>
>
>
>
>
> ******* end
As pointed out in another answer, you are using the xhtml method of
closing things such as meta and image that have no closing tags in
html. The W3C validator is quite correct as calling this an error,
because your Doctype says you are using html, not xhtml. In xhtml,
everything has to be closed. When html has no closing tag, in xhtml
you close as "blah />". In xhtml served correctly as application/xhtml
+xml, failure to close everything often results in your getting a
parsing error rather than the page being displayed. In xml, not
closing everything is one of the most serious errors you can make in
code. So far as I have seen, current browsers usually will forgive
using the xhtml closing tag "blah /> even though it is a html error.
Re: Verification help?
am 27.07.2007 20:55:02 von Robert Baer
Nik Coughlin wrote:
> Robert Baer wrote:
>
>> I have made a 27 line home page that W3C refuses to validate, and i
>>do not know how to fix it.
>> Line 6 is *DIRECTLY* from W3C and yet they bitch about it.
>
>
> That's because you're using an HTML 4.0 Transitional doctype and that line
> is XHTML
>
>
>> Line 12 ("..supplier of low pressure..") also gets a complaint.
>
>
> Those two lines have XHTML style tags. Change the end of those lines to be
> > instead of />
>
>
Thanks.
Re: Verification help?
am 27.07.2007 20:59:35 von Robert Baer
Beauregard T. Shagnasty wrote:
> Robert Baer wrote:
>
>
>> I have made a 27 line home page that W3C refuses to validate, and i
>>do not know how to fix it.
>
>
>
>>
>
>
> Also use a proper, modern, and complete DOCTYPE. 4.0 was obsolete
> sometime in the last century.
>
>
> "http://www.w3.org/TR/html4/strict.dtd">
>
> See: http://www.w3.org/QA/2002/04/valid-dtd-list.html
>
Will try; found that "html" gave mucho errors that went away when
used "HTML" in that line.
Re: Verification help?
am 27.07.2007 21:02:34 von Robert Baer
cwdjrxyz wrote:
> On Jul 26, 9:30 pm, Robert Baer wrote:
>
>> I have made a 27 line home page that W3C refuses to validate, and i
>>do not know how to fix it.
>> Line 6 is *DIRECTLY* from W3C and yet they bitch about it.
>> Line 12 ("..supplier of low pressure..") also gets a complaint.
>> Sorry about the folding, which messes with number of lines seen here.
>>******** start
>>
>>
>>
>>
>>
>>
>>
>>
>> content="Copyright (C) 2007 Petro-Gas Lift Tech LLC All rights
>>reserved.">
>>
>> content="Customer-oriented manufacturer & supplier of low pressure
>>gas well dewatering lifters." />
>>
>>Petro-Gas Lift Tech LLC
>>
>>
>>
>>
>>
>>
>>src="PGLtech.gif" border="0" alt="">
>>
>>
>>
>>
>>
>>******* end
>
>
> As pointed out in another answer, you are using the xhtml method of
> closing things such as meta and image that have no closing tags in
> html. The W3C validator is quite correct as calling this an error,
> because your Doctype says you are using html, not xhtml. In xhtml,
> everything has to be closed. When html has no closing tag, in xhtml
> you close as "blah />". In xhtml served correctly as application/xhtml
> +xml, failure to close everything often results in your getting a
> parsing error rather than the page being displayed. In xml, not
> closing everything is one of the most serious errors you can make in
> code. So far as I have seen, current browsers usually will forgive
> using the xhtml closing tag "blah /> even though it is a html error.
>
Am a bit confused; are you saying that "closing" HTML lines like
"blah >" is an error and not a proper "close"?