...

View Full Version : validation error... doesn't make sense?



JustinChrono
02-23-2011, 04:40 PM
i am having problems with my slider on the front page of my website
http://www.germanperformanceservice.com
on internet explorer only, after a picture slides, the page will scroll down to the bottom. this is very frustrating and distracting.

i tried the validator, Here (http://validator.w3.org/check?uri=http%3A%2F%2Fgermanperformanceservice.com%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.2) and there are only a few errors left, which seem to have to do with the slider problem, but i cant quite figure any of it out (i tried fixing the conditional comment and nothing happened)
if anyone could help me with this it would be greatly appreciated.

VIPStephan
02-23-2011, 04:56 PM
You can’t have the same ID more than once in a document. And then you’re repeatingly opening and immediately closing an HTML comment in the slider’s list but adding yet another closing comment string after each list item.

JustinChrono
02-23-2011, 04:58 PM
thank you so very much for responding.
however, i am still confused. is there any way you can help me out?
if i cant have the same id, what can i do? i tried copying that ID the exact way it was and changing the name, so there were different IDs with the same info, but that didn't seem to work at all for some reason. also, i only see one opening and closing of a comment string... that is the one <!-- and --> i have.
am i missing something?

effpeetee
02-23-2011, 05:02 PM
This may explain some of your errors (http://www.tizag.com/cssT/cssid.php).
ID's should only be used once. Use classes for multiple use.
Frank

xelawho
02-23-2011, 05:04 PM
I don't know allowTransparency, but if you want to use the same css for various elements, you can use div class

html:
<div class="excsl">

css:
.excsl {... }

your other errors seems to be minor, close your image tags and use <br/> instead of <br>

JustinChrono
02-23-2011, 06:32 PM
i think the error has something to do with the ' --> ' related error which i do not understand. i tried fixing the div to make it a div class instead of id and nothing changed.
any help!?!? thanks!!

teedoff
02-23-2011, 06:39 PM
You have improper use of comment tags all over your page. A proper comment in html is:

<!-- Comments go here -->

Notice the opening and closing characters. If you comment out a bit of mark-up, it must be exactly in the syntax above.

Now, most of the comments I saw on your page were empty, or not even wrapping around any code at all. Remove them completely if they're empty, since they are useless.

JustinChrono
02-23-2011, 06:45 PM
You have improper use of comment tags all over your page. A proper comment in html is:

<!-- Comments go here -->

Notice the opening and closing characters. If you comment out a bit of mark-up, it must be exactly in the syntax above.

Now, most of the comments I saw on your page were empty, or not even wrapping around any code at all. Remove them completely if they're empty, since they are useless.
thanks but i don't see any improper use of comment tags in my html.. i cant find it.

the only one i can find is this
<!-- <?php query_posts("cat=$eg_slide_cat&showposts=$eg_slide_posts"); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> -->
which i have tried editing many times..and it has the correct code, right? idk what is wrong

VIPStephan
02-23-2011, 07:24 PM
the only one i can find is this
<!-- <?php query_posts("cat=$eg_slide_cat&showposts=$eg_slide_posts"); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> -->

Oh, there we go. Donít comment out that second line as itís starting the wordpress loop. Move the closing comment up after the query_posts function.

teedoff
02-23-2011, 07:27 PM
thanks but i don't see any improper use of comment tags in my html.. i cant find it.

the only one i can find is this
<!-- <?php query_posts("cat=$eg_slide_cat&showposts=$eg_slide_posts"); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> -->
which i have tried editing many times..and it has the correct code, right? idk what is wrong

Do you know how to view source? If you go to the validator link you gave, it tells you the line the error is occuring on. Open your page in a browser, then view source. I think lines 160 and 173. On both of those lines you will see closing comment tags there.

A couple of your other errors I think are just not using the alt attribute for your images. You can just insert alt="" and those will clear up as well.

JustinChrono
02-23-2011, 08:13 PM
Oh, there we go. Don’t comment out that second line as it’s starting the wordpress loop. Move the closing comment up after the query_posts function.

hmm, thanks, i fixed that so it looks like this,
<!-- <?php query_posts ("cat=$eg_slide_cat&showposts=$eg_slide_posts"); ?> -->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

instead of how it used to look... however,
however, the problem still occurs.

also thanks, i viewed the source, but this doesn't tell me where the code is in my files to edit it, u know?

plus, if u look at the validator, there is only 1 error left about not understanding the "allowTransparency" .. any other ideas?? thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum