9 replies [Last post]
anevins
anevins's picture
Offline
newbie
Last seen: 1 year 42 weeks ago
Timezone: GMT+1
Joined: 2010-11-11
Posts: 10
Points: 13

Hello, I'm having problems with understanding errors given by W3C's validation tool.

Could someone check out the link and help me understand the problem and solutions for these errors please?
Here's the link:

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.cems.uwe.ac.uk%2F~anevins%2Fwdp%2Fproject2%2Fparties.php&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.2

Thanks

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 years 25 weeks ago
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2037
Points: 2256

These are comment delimiters:

These are comment delimiters: <!-- -->
These are not: <!--- --->

yet again.

anevins
anevins's picture
Offline
newbie
Last seen: 1 year 42 weeks ago
Timezone: GMT+1
Joined: 2010-11-11
Posts: 10
Points: 13

what happens if...

I use those correct comment delimeters and but add a space for the rest of the hyphens?

For example

Would that work?

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 years 25 weeks ago
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2037
Points: 2256

What happened when you tried

What happened when you tried it?

yet again.

anevins
anevins's picture
Offline
newbie
Last seen: 1 year 42 weeks ago
Timezone: GMT+1
Joined: 2010-11-11
Posts: 10
Points: 13

What happened...

<!-- --this comment-- -->

showed the errors:
Validation Output: 2 Errors

1. Error Line 1, Column 8: invalid comment declaration: found name start character outside comment but inside comment declaration

<!-- --this comment-- -->


2. Info Line 1, Column 1: comment declaration started here

 <!-- --this comment-- -->

3. Error Line 1, Column 26: end of document in prolog

 <!-- --this comment-- -->

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 years 25 weeks ago
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2037
Points: 2256

Yes, you are ending the

Yes, you are ending the comment early.

yet again.

anevins
anevins's picture
Offline
newbie
Last seen: 1 year 42 weeks ago
Timezone: GMT+1
Joined: 2010-11-11
Posts: 10
Points: 13

I don't get it.. How can I

I don't get it..
How can I make comments stand out, have you any suggestions using different characters which validate?

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 29 weeks 2 days ago
London
Joined: 2004-06-06
Posts: 15650
Points: 2788

<!-- ########################

<!--
###################################

THESE COMMENTS WILL STAND OUT!

###################################
-->

But have a play around, test things out, see what works. There is no standard set for how comments are presented.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

anevins
anevins's picture
Offline
newbie
Last seen: 1 year 42 weeks ago
Timezone: GMT+1
Joined: 2010-11-11
Posts: 10
Points: 13

Thanks guys

Thanks guys

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 years 25 weeks ago
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2037
Points: 2256

anevins wrote:I don't get

anevins wrote:

I don't get it.. ...

I'll try to clear it up. <! is a markup declaration open delimiter, for example a doctype declarations and comment declarations. Whatever follows <! tells you what sort of declaration it is, for example doctype in the case of a doctype declaration.

The issue occurs because the comment open delimiter is the same as the comment close delimiter. -- both opens and closes the comment so <!-- --this comment was just closed before the word this and not after the rest of this text -->.

Does that help?

yet again.