HighDots Forums  

validation

Website Design comp.infosystems.www.authoring.site-design


Discuss validation in the Website Design forum.



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

Default validation - 09-02-2004 , 09:15 AM






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

thank u
Franco

Reply With Quote
  #2  
Old   
Chris Beall
 
Posts: n/a

Default Re: validation - 09-02-2004 , 08:25 PM






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

thank u
Franco
Franco,

Yes.

You have three paragraphs on the page. The first paragraph contains an
unordered list. Both of these are block-level elements, but HTML does
not permit one block-level element to contain another. See
http://www.w3.org/TR/html4/struct/text.html#h-9.3.1. When the validator
sees the <ul>, it terminates the open paragraph (since the end tag is
optional), then processes the list, then finds an unexpected </p>, thus
generating the error message.

If you move the </p> which terminates the first paragraph AHEAD OF the
<ul> the problem will go away.

It is easy to do this if you are adding </p> tags to an old page on
which all <p> tags were implicitly terminated.

By the way, your THIRD paragraph does not have any </p>.

Regards,
Chris Beall



Reply With Quote
  #3  
Old   
Stan Brown
 
Posts: n/a

Default Re: validation - 09-02-2004 , 09:45 PM



"Franco" <franco (AT) intenet (DOT) net> wrote in
comp.infosystems.www.authoring.site-design:
Quote:
Could u explain me the error that i give from th validation of this
site : www.fsw.it
Please do not post the same query multiple times.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/


Reply With Quote
  #4  
Old   
Mark Parnell
 
Posts: n/a

Default Re: validation - 09-03-2004 , 01:37 AM



On 2 Sep 2004 07:15:02 -0700, Franco <franco (AT) intenet (DOT) net> declared in
comp.infosystems.www.authoring.site-design:

Quote:
Could u explain me the error that i give from th validation of this
site : www.fsw.it
http://validator.w3.org/check?verbos...A//www.fsw.it/

A paragraph cannot contain a list. Since the closing tag of the
paragraph is optional, the presence of the list automatically closes the
paragraph. As a result, when the validator gets to the </p>, it causes
an error.

Solution: Either put the </p> before the list, or remove it altogether.

BTW: You should be using HTML 4.01, not 4.0. And you should use a DTD
that triggers "Standards" mode in most browsers.

http://www.w3.org/QA/2002/04/valid-dtd-list.html

--
Mark Parnell
http://www.clarkecomputers.com.au


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 - 2008, Jelsoft Enterprises Ltd.