470,815 Members | 1,324 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

validation

Could u explain me the error that i give from th validation of this
site : www.fsw.it

thank u
Franco
Jul 23 '05 #1
5 1604

"Franco" <fr****@intenet.net> wrote in message
news:a4**************************@posting.google.c om...
Could u explain me the error that i give from th validation of this
site : www.fsw.it


You have a <p> which contains a <ul>
End the <p> before the <ul> starts.

-Karl
Jul 23 '05 #2

"Franco" <fr****@intenet.net> wrote in message
news:a4**************************@posting.google.c om...
Could u explain me the error that i give from th validation of this
site : www.fsw.it


"Line 54, column 5: end tag for element "P" which is not open"

Your </p> on line 54 is meant to match the <p> on line 44. But in between
you have a UL element (unordered list). A P element (paragraph) can only
contain inline code. It can't contain blocks. A list is a block.

The reason you didn't get an error back at line 47, where the <UL> for the
list is located, is that the end tag for a P element is optional. Therefore,
when the validator is in the middle of a P element and it finds the start
tag for something that isn't allowed in the P element, it just assumes that
the P element ends there, pretending there is a </p> immediately preceding
the new start tag (the <UL> in this case). In other words, it tries to avoid
finding an error at that point. Therefore, the validator is happy until you
get to the </p> on line 54, at which point you're not *in* a P element, so
you've got an end tag with no corresponding start tag.

Jul 23 '05 #3
Franco wrote:
Could u explain me the error that i give from th validation of this
site : www.fsw.it


Yes, you have attempted to include a list inside a paragraph, but
according to the HTML4 DTD, <p> cannot contain <ul> elements. Also,
then end tag for <p> is optional, thus it is automatically being closed
in the DOM when the <ul> is encountered, so the <p> is no longer open
when the </p> is reached.

Either take out the </p> entirely, or just move it to the end of the
paragraph, before the start of the list.

--
Lachlan Hunt
http://www.lachy.id.au/

Please direct all spam to ab***@127.0.0.1
Thank you.
Jul 23 '05 #4
On 2 Sep 2004 07:15:19 -0700, fr****@intenet.net (Franco) wrote:
Could u explain me the error that i give from th validation of this
site : www.fsw.it


The UL element is not part of the content model for element P.

Move your </p> markup to above the start tag for UL in the line number
area where the error is detected.

--
Rex
Jul 23 '05 #5
On 2 Sep 2004 07:15:19 -0700, Franco <fr****@intenet.net> wrote:
Could u explain me the error that i give from th validation of this
site : www.fsw.it

thank u
Franco

I just answered you in c.i.w.a.site-design. If you had NOT multi-posted
this, you would have saved me time.

Rather insensitive of you. If you wish to get advice from more than one ng
on the exact same question, cross-post it so we may see if it's been
answered already.
Jul 23 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

21 posts views Thread by Stefan Richter | last post: by
2 posts views Thread by wumingshi | last post: by
4 posts views Thread by Tim Meagher | last post: by
6 posts views Thread by Stephen | last post: by
7 posts views Thread by Ryan Ternier | last post: by
5 posts views Thread by Chris | last post: by
6 posts views Thread by Jon Paal | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.