HighDots Forums  

Validation problem

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Validation problem in the HTML forum.



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

Default Validation problem - 12-13-2007 , 02:22 PM






Hello I have a problem with the validation of my homepage: www.marres.nl

due to the listmenu.



The functioning of this menu is good in all browsers, although it dont't
look exactly as wanted in Netscape and Foxilla.



This is the HTLM code:



<span id="nav" class="nav">

</span> <ul>

<li class="selected"><span id="nav" class="nav"><span class="center"><a
href="index.htm">Home</a></span></span>

</li></ul>

<ul>

<li><a href="index.htm">Home</a></li>

</ul>

<!/li> <ul>

<li class="anders"><span class="center"><a
href="lakenindustrie.htm">Lakenindustrie</a></span></li>

</ul>

<ul>

<li><a href="schadelijst.htm">Schadelijst anno 1408</a></li>

<li><a href="lakenindustrie.htm">Lakenindustrie</a></li>

<li><a href="charter.htm">Charter</a></li>

</ul>



W3C Markup Validation output gives one error



Line 203, Column 20 repeated seven more times for seven same faults)



Document type does not allow element "LI" here

<li class="selected"> <div class="center"><a href="index.htm">Home
</a></div>





cleaned up markup processed through HTML Tidy sugested:



<span id="nav" class="nav">

<li class="selected"> <div class="center"><a href="index.htm">Home
</a></div>

<ul>

<li> <a href="index.htm">
Home </a> </li>

</ul>

</li>

<li class="anders"> <span class="center"><a
href="lakenindustrie.htm">Lakenindustrie </a> </span>

<ul>

<li> <a href="schadelijst.htm">
Schadelijst anno 1408 </a> </li>

<li> <a href="lakenindustrie.htm">
Lakenindustrie </a> </li>

<li> <a href="charter.htm">
Charter </a> </li>

</ul>

</li>



But with these suggestion the menu doesn't work. see:
www.marres.nl/menu.htm



I would be grateful as anybody has an advise.



Boed







Reply With Quote
  #2  
Old   
a-ok-site
 
Posts: n/a

Default Re: Validation problem - 12-13-2007 , 03:02 PM






On Dec 13, 2:22 pm, "Boed" <mar... (AT) chello (DOT) nl> wrote:
Quote:
Hello I have a problem with the validation of my homepage: www.marres.nl

due to the listmenu.

The functioning of this menu is good in all browsers, although it dont't
look exactly as wanted in Netscape and Foxilla.

This is the HTLM code:

span id="nav" class="nav"

/span> <ul

li class="selected"><span id="nav" class="nav"><span class="center"><a
href="index.htm">Home</a></span></span

/li></ul

ul

li><a href="index.htm">Home</a></li

/ul

!/li> <ul

li class="anders"><span class="center"><a
href="lakenindustrie.htm">Lakenindustrie</a></span></li

/ul

ul

li><a href="schadelijst.htm">Schadelijst anno 1408</a></li

li><a href="lakenindustrie.htm">Lakenindustrie</a></li

li><a href="charter.htm">Charter</a></li

/ul

W3C Markup Validation output gives one error

Line 203, Column 20 repeated seven more times for seven same faults)

Document type does not allow element "LI" here

li class="selected"> <div class="center"><a href="index.htm">Home
/a></div

cleaned up markup processed through HTML Tidy sugested:

span id="nav" class="nav"

li class="selected"> <div class="center"><a href="index.htm">Home
/a></div

ul

li> <a href="index.htm"
Home </a> </li

/ul

/li

li class="anders"> <span class="center"><a
href="lakenindustrie.htm">Lakenindustrie </a> </span

ul

li> <a href="schadelijst.htm"
Schadelijst anno 1408 </a> </li

li> <a href="lakenindustrie.htm"
Lakenindustrie </a> </li

li> <a href="charter.htm"
Charter </a> </li

/ul

/li

But with these suggestion the menu doesn't work. see:www.marres.nl/menu.htm

I would be grateful as anybody has an advise.

Boed
Try putting the list inside of the div.

btw Google analytics is supposed to be placed just before </body> not
in the head section.

Daniel


Reply With Quote
  #3  
Old   
Bergamot
 
Posts: n/a

Default Re: Validation problem - 12-13-2007 , 03:35 PM



Boed wrote:
Quote:
Hello I have a problem with the validation of my homepage: www.marres.nl
due to the listmenu.

This is the HTLM code:
You posted the URL so there was no reason to include all that code.

The error is that you omitted the <ul></ul> around the whole list. It
starts with an <li> instead, which is invalid.

--
Berg


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

Default Re: Validation problem solved - 12-14-2007 , 04:39 AM



Daniel and Berg,

Many thanks,

The site www.marres.nl is as a result of your advise now validated and looks
as wanted.

Boed



Reply With Quote
  #5  
Old   
Rob Waaijenberg
 
Posts: n/a

Default Re: Validation problem solved - 12-15-2007 , 06:14 AM



Boed schreef:
Quote:
Daniel and Berg,

Many thanks,

The site www.marres.nl is as a result of your advise now validated and looks
as wanted.

Boed


No it doesn't.

It doesn't validate
when I just checked there was still 1 validation error

and in Opera it probably doesn't look the way you want it.

--
Rob


Reply With Quote
  #6  
Old   
Rob Waaijenberg
 
Posts: n/a

Default Re: Validation problem solved - 12-15-2007 , 06:18 AM



Boed schreef:
Quote:
Daniel and Berg,

Many thanks,

The site www.marres.nl is as a result of your advise now validated and looks
as wanted.

Boed



Even when it validates (which it doesn't right now)
there is still something I'd like you to look at.

You have 5 images on your homepage that are obviously links
but I don't know where they will bring me, should I want to click them.
A little text that says where the link leads to, would not be a bad idea.

Also, not all the other pages have a link back to the Home-page.

--
Rob


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.