Connecting Tech Pros Worldwide Help | Site Map

wc3 Validation error question

bill drescher
Guest
 
Posts: n/a
#1: Jul 21 '05
Here is the context in question:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>Paddy's Dog Shows</title>
<meta content="six" name="author">
<link rel="stylesheet" type="text/css" href="dog_pages.css" title="Dog
Pages Styles" media="screen, print" />
</head>

line 8 is the link statement:

here is the error message

Errors
Line 8, character 109:
.... yles" media="screen, print" />
^Error: text is not allowed here; try
wrapping the text in a more descriptive container


what is the error and what did I do wrong.

--
Bill Drescher
william {at} TechServSys {dot} com
Jan Steffen
Guest
 
Posts: n/a
#2: Jul 21 '05

re: wc3 Validation error question


bill drescher schrieb:[color=blue]
> Here is the context in question:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html>
> <head>
> <meta content="text/html; charset=ISO-8859-1"
> http-equiv="content-type">
> <title>Paddy's Dog Shows</title>
> <meta content="six" name="author">
> <link rel="stylesheet" type="text/css" href="dog_pages.css" title="Dog
> Pages Styles" media="screen, print" />
> </head>
>
> line 8 is the link statement:
>
> here is the error message
>
> Errors
> Line 8, character 109:
> ... yles" media="screen, print" />
> ^Error: text is not allowed here; try
> wrapping the text in a more descriptive container
>
>
> what is the error and what did I do wrong.
>[/color]

You are mixing HTML and XML Style.
Drop the / in HTML empty tags.

Jan
--
Axis of Evil! Countries with death penalty on juveniles:
Iran, Nigeria, Pakistan, Saudia Arabia, USA
Els
Guest
 
Posts: n/a
#3: Jul 21 '05

re: wc3 Validation error question


bill drescher wrote:
[color=blue]
> Here is the context in question:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html>
> <head>
> <meta content="text/html; charset=ISO-8859-1"
> http-equiv="content-type">
> <title>Paddy's Dog Shows</title>
> <meta content="six" name="author">
> <link rel="stylesheet" type="text/css" href="dog_pages.css"
> title="Dog Pages Styles" media="screen, print" />
> </head>
>
> line 8 is the link statement:
>
> here is the error message
>
> Errors
> Line 8, character 109:
> ... yles" media="screen, print" />
> ^Error: text is not
> allowed here; try
> wrapping the text in a more descriptive container
>
>
> what is the error and what did I do wrong.[/color]

Not sure if this causes the error, but your doctype states
HTML, not XHTML. So you shouldn't put a / before the >.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Annie Lennox - Walking On Broken Glass
Nick Kew
Guest
 
Posts: n/a
#4: Jul 21 '05

re: wc3 Validation error question


In article <Xns952CB6E28A7DDEls@130.133.1.4>,
Els <els.aNOSPAM@tiscali.nl> writes:
[color=blue]
> Not sure if this causes the error, but your doctype states
> HTML, not XHTML. So you shouldn't put a / before the >.[/color]

Yes, that is the cause of the error. Google for SHORTTAGS, or see
http://valet.webthing.com/page/parsemode.html

If you validate with Page Valet and select SGML mode you'll get
the same error you saw. Select HTML mode and you'll get a more
meaningful error message.

--
Nick Kew
bill drescher
Guest
 
Posts: n/a
#5: Jul 21 '05

re: wc3 Validation error question


Jan Steffen wrote:
[color=blue]
> bill drescher schrieb:
>[color=green]
>> Here is the context in question:
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>> "http://www.w3.org/TR/html4/strict.dtd">
>> <html>
>> <head>
>> <meta content="text/html; charset=ISO-8859-1"
>> http-equiv="content-type">
>> <title>Paddy's Dog Shows</title>
>> <meta content="six" name="author">
>> <link rel="stylesheet" type="text/css" href="dog_pages.css" title="Dog
>> Pages Styles" media="screen, print" />
>> </head>
>>
>> line 8 is the link statement:
>>
>> here is the error message
>>
>> Errors
>> Line 8, character 109:
>> ... yles" media="screen, print" />
>> ^Error: text is not allowed here; try
>> wrapping the text in a more descriptive container
>>
>>
>> what is the error and what did I do wrong.
>>[/color]
>
> You are mixing HTML and XML Style.
> Drop the / in HTML empty tags.
>
> Jan[/color]


Thanks all, I redid the doctype as xhtml and all is well.

--
Bill Drescher
william {at} TechServSys {dot} com
Closed Thread


Similar HTML / CSS bytes