HighDots Forums  

W3C validation failed

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss W3C validation failed in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
lauralein
 
Posts: n/a

Default W3C validation failed - 07-11-2004 , 06:52 PM






This is to all of you who are the real code writers:

I designed a page in Image Ready saved the optimized html file as CSS and
imported it into Dreamweaver. After tweaking it a little, converting it to make
it XHTML compliant, everythings seems to work. Then I went and validated the
site with Dreamweaver's build-in validator and no errors were showing.

After that I went to http://validator.w3.org and 74 errors came up and I was
startled. : (
I have heard people say that neither Image Ready nor Dreamweaver produces
valid code, but that it is that bad, I didn't know...

I wish I would know how to interprete the error messages, they didn't seem to
be that tragic, but a lot of them.

If anybody could help me out I would greatly appreciate it, since I am at my
wits end : (

The site or page to validate is: http://www.ciaolavanderia.com

Thank you guys!
+++carina


Reply With Quote
  #2  
Old   
Joe Makowiec
 
Posts: n/a

Default Re: W3C validation failed - 07-11-2004 , 07:27 PM






On 11 Jul 2004 in macromedia.dreamweaver, lauralein wrote:

Quote:
The site or page to validate is: http://www.ciaolavanderia.com
In your script tag in the header, you've got two comment tags right at
the beginning:

<script type="text/javascript">
<!--
<!--

Eliminate one of those. Also, about halfway down the script block,
there's an end comment declaration:

//-->

Eliminate that, too. I'm willing to bet that most of your validation
errors will go away.

Even better - externalize your javascript and your CSS. If you don't
know how, a quick google of the group's archives
(http://groups.google.com/ -> Advanced Group Search, search for, say,
'externalize javascript' should come up with several [hundred] posts
which explain how to do it.

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php


Reply With Quote
  #3  
Old   
Peter Connolly
 
Posts: n/a

Default Re: W3C validation failed - 07-11-2004 , 07:42 PM



lauralein wrote:
Quote:
This is to all of you who are the real code writers:

I designed a page in Image Ready saved the optimized html file as
CSS and imported it into Dreamweaver. After tweaking it a little,
converting it to make it XHTML compliant, everythings seems to work.
Then I went and validated the site with Dreamweaver's build-in
validator and no errors were showing.

After that I went to http://validator.w3.org and 74 errors came up
and I was startled. : (
I have heard people say that neither Image Ready nor Dreamweaver
produces valid code, but that it is that bad, I didn't know...

I wish I would know how to interprete the error messages, they
didn't seem to be that tragic, but a lot of them.

If anybody could help me out I would greatly appreciate it, since I
am at my wits end : (

The site or page to validate is: http://www.ciaolavanderia.com

Thank you guys!
+++carina
The client should be happy with that site - looks nice!

Although I use DWMX2004, I've never used it to validate code, I always use
the http://validator.w3.org one; no particular reason for me, I've just
always done it that way.

The errors you get are all in the script content. If you move it out into an
included .js file, the page validates correctly.

Also consider moving your CSS into an included .css file, which will make
subsequent pages in the site (marginally) quicker to load.

HTH,

Pete.
--
Peter Connolly
http://www.acutecomputing.co.uk
Derby
UK




Reply With Quote
  #4  
Old   
lauralein
 
Posts: n/a

Default Re: W3C validation failed - 07-11-2004 , 07:47 PM



Hey Joe!

Thanks a thousand times! You were absolutely on target! I really appreciate
your help!
I can hardly believe that these 2 code errors were coming up as 74 errors
before! Wow, what a difference some text -or lack thereof- makes!

Do you have some advice on how to know what exactly one needs to change if an
error comes up? Is it in most cases that one needs to delete the referenced
code error? Is there some good documentation somewhere to be found on how to
interprete these messages?

Thanks again and have a good Sunday!


Reply With Quote
  #5  
Old   
Gary White
 
Posts: n/a

Default Re: W3C validation failed - 07-11-2004 , 07:59 PM



"lauralein" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
After that I went to http://validator.w3.org and 74 errors came up and I
was
startled. : (
I'm not getting any errors in either the HTML or the CSS for the page at:
http://www.ciaolavanderia.com/

Is there some specific page that's giving the errors?

Gary




Reply With Quote
  #6  
Old   
lauralein
 
Posts: n/a

Default Re: W3C validation failed - 07-11-2004 , 08:03 PM



Hi Gary,
it's the following page http://www.ciaolavanderia.com/contact.html

I would appreciate your help!
Thanks, Carina


Reply With Quote
  #7  
Old   
:. Nadia .:
 
Posts: n/a

Default Re: W3C validation failed - 07-11-2004 , 08:29 PM




"lauralein" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi Gary,
it's the following page http://www.ciaolavanderia.com/contact.html

I would appreciate your help!
Thanks, Carina
In the w3org report, if you have a look at the line numbers and go into your
code, that may help,
You have a couble instance of the following - remove one and see what
happens.
<!--
<!--

I'm afraid I don't recognise some of the other errors, but removing one of
the above instances may clear it all up like it did on your other pages.

--
Nadia
---------------
:Free Templates !! Dropdown Menu Designs:
http://www.DreamweaverResources.com
:Templates: Free Nav Bar Sets:
:Tutorials : Ecommerce : SEO Articles :
-----------------





Reply With Quote
  #8  
Old   
Gary White
 
Posts: n/a

Default Re: W3C validation failed - 07-11-2004 , 09:31 PM



"lauralein" <webforumsuser (AT) macromedia (DOT) com> wrote


Quote:
it's the following page http://www.ciaolavanderia.com/contact.html

I would appreciate your help!
Thanks, Carina

Hmmm... I'm confused. Joe's comment looks like it's right on the money and
you answered him that that was the problem, but you answered me after that.
Do you still have the problem?

Gary




Reply With Quote
  #9  
Old   
Joe Makowiec
 
Posts: n/a

Default Re: W3C validation failed - 07-11-2004 , 10:33 PM



On 11 Jul 2004 in macromedia.dreamweaver, Gary White wrote:

Quote:
"lauralein" <webforumsuser (AT) macromedia (DOT) com> wrote in message
news:ccskfv$4mj$1 (AT) forums (DOT) macromedia.com...

it's the following page http://www.ciaolavanderia.com/contact.html

I would appreciate your help!
Thanks, Carina

Hmmm... I'm confused. Joe's comment looks like it's right on the
money and you answered him that that was the problem, but you
answered me after that. Do you still have the problem?
There is a problem with the contact page - there were two closing comment
tags, and she took out both of them instead of just one; thus, the
comment which starts the script block is never closed, and the validator
throws a fit.

Carina: Just before the closing script tag, add a closing comment tag:

//-->
</script>

However, go back, reread my initial message, and ***externalize the
javascript*** and the CSS!!! It has several advantages:
- reduces load times after the first page is loaded, because the external
javascript and css files are (supposed to be) cached.
- reduces the possibility of this kind of error
- minimizes maintenance. Particularly with CSS, if you want to change
something, you only have to do it in one place, and it propogates
sitewide.

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php


Reply With Quote
  #10  
Old   
Gary White
 
Posts: n/a

Default Re: W3C validation failed - 07-11-2004 , 10:43 PM



"Joe Makowiec" <makowiec (AT) invalid (DOT) invalid> wrote

Quote:
There is a problem with the contact page - there were two closing comment
tags, and she took out both of them instead of just one; thus, the
comment which starts the script block is never closed, and the validator
throws a fit.

Thanks, Joe. I didn't look at it any further because I didn't know whether
or not it had been resolved. Glad you sorted it out for her.

Gary




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.