w3c validator

message from Daniel Reyes on 22 Jul 2004
Hello,

after doing my site in XHTML 1.0 Transitional, and letting the DW inbuilt
validator run it says no errors.

Running the validator on w3c.ort site, I get more then 600 errors !!

What am I doing wrong?

Thanks,
Daniel
 
Seth Meranda replied to Daniel Reyes on 22 Jul 2004
What are some of the errors?
 
Daniel Reyes replied to Seth Meranda on 22 Jul 2004
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.caboverde24.com

"Seth Meranda" <smeranda@4w.com> wrote in message
news:cdp2c9$ld1$1@forums.macromedia.com...
 
Joe Makowiec replied to Daniel Reyes on 22 Jul 2004
- You have regular markup in the head of your doc:
<span class="cv24"></span><span class="unnamed1"></span>
- A lot of the errors are coming from the scripts. Externalize the
javascript; google the group for instructions if you don't know how.
- As somebody else pointed out, you have unclosed tags. Try this:
 
Daniel Reyes replied to Joe Makowiec on 22 Jul 2004
Hello and thanks a lot for the hint !
When trying to convert to XHTML I get an error message from DW, that says
that there is code locked by a template or a translator.
can anybody point me in the right direction?

"Joe Makowiec" <webmaster@munged.brunswicklibrary.invalid> wrote in message
news:Xns952EA35A0E0BEmakowiecatnycapdotrE@216.104.212.96...
macromedia.dreamweaver:
 
Murray *TMM* replied to Daniel Reyes on 22 Jul 2004
I'm just curious. Why are you using XHTML?
 
Daniel Reyes replied to Murray *TMM* on 22 Jul 2004
Hello I´m only trying to reach a w3c conform site.
I also tryed to use HTML 4.01 but i´t the same: in DW no errors, but
validating on w3c.org I get hundreds !

Any idea what I´m doing wrong?

"Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
news:cdp8sp$6h$1@forums.macromedia.com...
 
darrel replied to Daniel Reyes on 22 Jul 2004
I believe that is the purpose of the validator...it's telling you what you
are doing wrong.

My guess is that you are mixing HTML with XHTML and then expecting it to
validate one way or the other. technically, XHTML *should* validate as HTML,
but it all depends on what exactly you are doing. As others have pointed
out, it sounds like you just have some 'dirty' markup causing the problems.

Also, don't depend on DW's validator.

-Darrel
 
Murray *TMM* replied to Daniel Reyes on 22 Jul 2004
Well, if you don't have a need to use XHTML, don't use it!

What is the URI to the page?
 
Daniel Reyes replied to Murray *TMM* on 22 Jul 2004
For me it´s enough HTML 4.01 - my goal is to be w3c conform.
URL: www.caboverde24.com

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.caboverde24.com
 
Murray *TMM* replied to Daniel Reyes on 22 Jul 2004
Then I would recreate the page without the XHTML prolog and the XHTML tag
style.
 
Michael Fesser replied to Daniel Reyes on 23 Jul 2004
.oO(Daniel Reyes)

Then stay with HTML 4.01 unless you really need XHTML or can explain why
you want to use it.

On the other side there are so many issues with your code (deeply nested
tables, tons of deprecated elements and attributes, improperly nested
and useless empty elements, unreasonable markup ...) - it would be the
best to drop the entire thing and start again. Seriously.

The HTML/JS-code alone weighs about 50KB! I bet you could achieve the
same result with less than 10KB.

Micha
 
Eric A. Meyer replied to Daniel Reyes on 22 Jul 2004
A lot of your initial errors are caused by your not authoring in
XHTML, but in HTML. For example, you have:

<link href="css/styles.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

These should be:

<link href="css/styles.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>

note the trailling slashes. On EVERY empty element-- that is, every
'link', 'meta', 'img', 'br', and other element that doesn't have a close
tag-- you have to add the trailing slash.
You also put a 'span' element inside the 'head' element. That isn't
even allowed in HTML, let alone XHTML.
There are no doubt other problems, but those are basic ones that
should be addressed first. Once they are, it's likely that the number
of errors will drop precipitously, and it will be easier to concentrate
on what's left.
 
Daniel Reyes replied to Eric A. Meyer on 22 Jul 2004
Hello,

also changing to HTML 3.2 or 2.0 does get more then 200 errors still.
And also DW validator says the site is ok !
For what the validator when it doesn´t work?
Regards,
Daniel

"Eric A. Meyer" <eric@meyerweb.com> wrote in message
news:eric-6CC923.15045322072004@forums.macromedia.com...
 

Archived message: w3c validator (Macromedia Dreamweaver Web Design)