3 replies [Last post]
andya700
andya700's picture
Offline
Regular
Last seen: 10 years 40 weeks ago
Joined: 2008-11-19
Posts: 31
Points: 11

I would appreciate anyone helping me with a problem validating a site with XHTML1.0 Strict. I checked the code for days and cannot see the problem. WC3 validator tells me things that do not have much sense, meaning that when I check the lines and columns where it points out problems all seems ok to me. I am new to coding, this is one of my first websites and it is sure I am doing something wrong, but after days of reading forums and material I just raise my hands and surrended to...your help (I hope). Here is the site

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Senpai Srl - Management Consulting</title>
<meta name="keywords" content="Senpai"/>
<meta name="description" content="Sito Web di Senpai Srl - Management Consulting"/>
<meta name="revisit-after" content="30-days"/>
<meta name="robots" content="all, index"/><!--vedi poi se togliere index e limitare pagina about us-->
<meta name="author" content="Singsandbytes - <a href="http://www.signsandbytes.com" rel="nofollow">www.signsandbytes.com</a> - for Senpai Srl"/>
<meta name="copyright" content="Senpai Srl"/><!--extra meta line-->
<meta name="publisher" content="Senpai Srl"/><!--extra meta line-->
<style type="text/css" media="screen">
/* <![CDATA[ */
@import url(senpai.css);
/* ]] */ 
</style>
<script type="text/javascript" src="senpai.js"></script>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
<link rel="shortcut icon" href="images/faviconarancio.ico" type="image/x-icon"/>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css"/>
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="senpai--ie-6lte-hacks.css" media="screen"/>
<![endif]-->
</head>
<body>
<div id="wrapper">
    	<div id="masthead">    	
    		<div id="langnav">
              <a href="indexIT.html"><img src="images/UKFlagSmallEmbossed.gif" height="15" width="30"/></a>
              </div>
  </div>
<div id="navigation">
  <ul class="MenuBarHorizontal style1" id="MenuBar1">
    <li><a href="#">Home</a> </li>
    <li><a href="#" class="MenuBarItemSubmenu">Consulenza</a>
      <ul>
        <li><a href="#" class="MenuBarItemSubmenu">Operations management</a>
          <ul>
            <li><a href="#">Product management</a></li>
            <li><a href="#">Ingegneria di processo</a></li>
            <li><a href="#">Logistica di produzione</a></li>
            <li><a href="#">Produzione</a></li>
          </ul>
        </li>
        <li><a href="#" class="MenuBarItemSubmenu">Lean production</a>
          <ul>
            <li><a href="#">Eccellenza produttiva</a></li>
            <li><a href="#">Qualit&aacute; built-in</a></li>
            <li><a href="#">Riduzione costi</a></li>
            <li><a href="#">Servizio al cliente</a></li>
          </ul>
        </li>
        <li><a href="#" class="MenuBarItemSubmenu">Supply chain management</a>
          <ul>
            <li><a href="#">Fornitori</a></li>
            <li><a href="#">Magazzini</a></li>
            <li><a href="#">Trasporti</a></li>
            <li><a href="#">Distribuzione</a></li>
          </ul>
        </li>
      </ul>
    </li>
    <li><a class="MenuBarItemSubmenu" href="#">Outsourcing</a>
      <ul>
        <li><a href="#">Budgeting</a>        </li>
        <li><a href="#">Industrial brokerage</a></li>
        <li><a href="#">Procurement</a></li>
        <li><a href="#">Expediting</a></li>
      </ul>
    </li>
    <li><a href="#" class="MenuBarItemSubmenu">Servizi</a>
      <ul>
        <li><a href="#">Formazione</a></li>
        <li><a href="#">Finanziamenti agevolati</a></li>
      </ul>
    </li>
    <li><a href="#">Come operiamo</a></li>
    <li><a href="#">News</a></li>
    <li><a href="#">Chi siamo</a></li>
    <li><a href="#">Partners</a></li>
    <li><a href="#" class="MenuBarItemSubmenu">Portofolio</a>
      <ul>
        <li><a href="#">Clienti</a></li>
        <li><a href="#">Progetti</a></li>
      </ul>
    </li>
    <li><a href="#">Downloads e links</a></li>
    <li><a href="#">Contattaci</a></li>
  </ul>
  </div>
<div id="content" class="clearFix">
		<ul id="breadcrumbs">
                <li>Home</li>
        </ul>
	<div class="boxout">
    	<h2>News Senpai</h2>
   	  <h3>date<br/></h3>
    	<p>text</p>
      <h3>date<br/></h3>
      	<p>text</p>
    </div>
    <h1>Title</h1>
   	<p>Ignibh euisisi tie magna feum dipsustio ex eugiat volor am, vulputpat lut volorperit et, consenit ilis niam, si elendre consequ amconul lamcore molortie modolor sustion ullum zzril iuscidunt ulputpat acidui bla facillaor sit wis et, corem zzrilis et nim ex ex essit utat. Dunt vullut accumsandrer iriure dit la facip ectet praesectem ipit ulputem quamcom moluptat, sequipisl delis nullam zzriure feugait nullaortis aci tin er si er sum nim verat. Duisi bla faccum dunt dunt landrero dipit volorem veliquatem dolesto doloree tuerit pratiscing ea feu faci bla consequatie dunt laoreet wis ametum enibh esent laore facipsum venim volor il in ullam ipit utpat. Ut pratum nummy nons numsan ulla feui tat.</p>
    <h2>Sottotitolo di prova</h2>
    <p>Tumsand ipsustie tie dolorperos et, ver adit, consecte magnis alit lobore feuguero erosting eu feuismo doleniam dolore vel incipit la feuis nos doloborero ero doloreet pratissi bla conse dolendre corer sed te delit verci ero dolor aci blan vendipit adigna conullan ullan ero ea ad tem delis ea commodo lorercip et lum num dunt dolore dolent iriure dignibh et vel et vel iure del eumsan voloreet nostrud modolorem iliquipis alisi.</p>
    <h3>Sottotitolo di prova</h3>
    <p>Tumsand ipsustie tie dolorperos et, ver adit, consecte magnis alit lobore feuguero erosting eu feuismo doleniam dolore vel incipit la feuis nos doloborero ero doloreet pratissi bla conse dolendre corer sed te delit verci ero dolor aci blan vendipit adigna conullan ullan ero ea ad tem delis ea commodo lorercip et lum num dunt dolore dolent iriure dignibh et vel et vel iure del eumsan voloreet nostrud modolorem iliquipis alisi. Tumsand ipsustie tie dolorperos et, ver adit, consecte magnis alit lobore feuguero erosting eu feuismo doleniam dolore vel incipit la feuis nos doloborero ero doloreet pratissi bla conse dolendre corer sed te delit verci ero dolor aci blan vendipit adigna conullan ullan ero ea ad tem delis ea commodo lorercip et lum num dunt dolore dolent iriure dignibh et vel et vel iure del eumsan voloreet nostrud modolorem iliquipis alisi.</p>
		</div>
 
	<div id="footer">
		<span id="footer-left">Copyright 2008, Senpai Srl - Tutti i diritti riservati</span>
        <span id="footer-right"><a href="resources/SenpaiWebCondizioniUso.pdf" title="Condizioni d'uso del sito web di Senpai">Condizioni d'uso</a></span>
    	<span id="footer-centre">Created by <a href="http://www.signsandbytes.com" title="Sito web di Singsandbytes">www.signsandbytes.com</a></span>
 
  	</div>
</div>
<!--Google Analytics Start-->
<!--Google Analytics End-->
</body>
</html>

I get this report from HTML validator of WC3.

Validation Output:  5 Errors
 
   1. Error Line 128, Column 7: end tag for "style" omitted, but OMITTAG NO was specified.
 
      </html>
 
      ✉
 
      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   2. Info Line 13, Column 0: start tag was here.
 
      <style type="text/css" media="screen">
 
   3. Error Line 128, Column 7: end tag for "head" omitted, but OMITTAG NO was specified.
 
      </html>
 
      ✉
 
      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   4. Info Line 3, Column 0: start tag was here.
 
      <head>
 
   5. Error Line 128, Column 7: "html" not finished but document ended.
 
      </html>
 
      ✉
   6. Error Line 128, Column 7: end tag for "html" omitted, but OMITTAG NO was specified.
 
      </html>
 
      ✉
 
      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   7. Info Line 2, Column 0: start tag was here.
 
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
   8. Error Line 128, Column 7: missing marked section end.
 
      </html>
 
      ✉
   9. Info Line 14, Column 3: marked section started here.
 
      /* <![CDATA[ */

Please anyone, can you help?
I would be really grateful as I cannot see what I am doing wrong on my own here.

Time to ask for help I guess.
Thanks in advance
A

Andy

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 30 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

See what happens when you

See what happens when you correct this:

/* ]] */

to:

/* ]]> */

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

andya700
andya700's picture
Offline
Regular
Last seen: 10 years 40 weeks ago
Joined: 2008-11-19
Posts: 31
Points: 11

Almost fine but...

Hugo,
You are a genius! I think I read and re-read the code for like...days and may be so much that it seems like silly errors pass by my nose without me noticing! Being new to this (my first proper site and I am completely self-taught...) it shows how much there is to learn!

Your correction, plus some other mistakes I meanwhile spotted (some divs were unclosed, little details here and there, for instance I had a -- instead of a - in the .css file for IE6 hacks) reduced the errors to 1 (a new one though Wink ) but I found and corrected the issues (alt was missing from a pic!).

Now it validate perfectly!

Thanks a lot! Now off I go with the CSS validation...likely another struggle. One really learns the importance of proper typing with validations!!!

Thanks...this was my fist posting here and already paid off with interests!

Really appreciate your help

A

Andy

Maisy
Offline
newbie
croydon
Last seen: 13 years 10 weeks ago
croydon
Joined: 2009-05-22
Posts: 4
Points: 0

Hello Hugo Please help, i am useless at this I just started.

This comment has been moved here.