1. #1
    Darkside331's Avatar
    Registered
    13/09/08
    Location
    Ooigem
    Posts
    1,219
    iTrader
    19 (100%)
    Mentioned
    0 Post(s)

    Validator probleem

    Voor een opdracht moet ik een html site maken maar ik zit met het probleem dat ik met 7 errors zit die ik er niet uit krijg. Ook omdat ik ze amper versta

    Code:
     <div class="widgets">
            *<ul>
    	* * *	<li>. PAGES
     * * * * * *	<ul>
     * * * * * * * *	<li>about</li>
    					<li>nog tekst</li>
                        <li>nog meer tekst</li>
    				</ul></li>
     * * * *	<li><hr /></li>
     * * * *	<li><span>.</span>Leve nutteloze Tag Clouds
    				die geen nut hebben…</li>
     * * * *	<li><hr /></li>
     * * * *	<li>. Wie zoekt...</li>
     			<li><input type="text" /></li>
     * *	</ul>
      </div>
    Dit is de HTML code waar de 7 error in plaatsvinden.

    Als ik laat valideren krijg ik dan deze errors:

    Code:
    Line 34, Column 2: character data is not allowed here
    	     	<li>. PAGES
    ✉
    You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:
    
    putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
    forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
    using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.
    Deze error krijg ik 7 keer maar dan op andere LI's

    Bedankt
    no votes  

  2. #2
    Maser00's Avatar
    Registered
    07/07/09
    Location
    Oost-Vlaanderen
    Posts
    1,137
    iTrader
    12 (100%)
    Mentioned
    0 Post(s)
    Het zou veel gemakkelijker zijn moest je heel je code eens tonen.
    no votes  

  3. #3
    W0utR's Avatar
    Registered
    16/04/08
    Location
    Hong Kong
    Posts
    1,989
    iTrader
    6 (100%)
    Mentioned
    0 Post(s)
    Reputation
    7/9
    putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>)
    Er staat toch al hoe je het kan oplossen?
    no votes  

  4. #4
    Darkside331's Avatar
    Registered
    13/09/08
    Location
    Ooigem
    Posts
    1,219
    iTrader
    19 (100%)
    Mentioned
    0 Post(s)
    Quote Originally Posted by Darkside331 View Post
    This quote is hidden because you are ignoring this member. Show
    Voor een opdracht moet ik een html site maken maar ik zit met het probleem dat ik met 7 errors zit die ik er niet uit krijg. Ook omdat ik ze amper versta

    Code:
     <div class="widgets">
            *<ul>
    	* * *	<li>. PAGES
     * * * * * *	<ul>
     * * * * * * * *	<li>about</li>
    					<li>nog tekst</li>
                        <li>nog meer tekst</li>
    				</ul></li>
     * * * *	<li><hr /></li>
     * * * *	<li><span>.</span>Leve nutteloze Tag Clouds
    				die geen nut hebben…</li>
     * * * *	<li><hr /></li>
     * * * *	<li>. Wie zoekt...</li>
     			<li><input type="text" /></li>
     * *	</ul>
      </div>
    Dit is de HTML code waar de 7 error in plaatsvinden.

    Als ik laat valideren krijg ik dan deze errors:

    Code:
    Line 34, Column 2: character data is not allowed here
    	     	<li>. PAGES
    ✉
    You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:
    
    putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
    forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
    using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.
    Deze error krijg ik 7 keer maar dan op andere LI's

    Bedankt
    Dit heel heel de Html:
    Code:
    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Nest Cast</title>
    <link href="blog.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="CSS/Print.css" media="print" type="text/css" rel="stylesheet" />
    </head>
    
    <body>
    	  <h1><span> Nest-Cast: Zangzaad voor bloggers. </span> </h1>
    
    <div id="container">
    
    	<div class="boxartikel">
        	<div class="datum"><p><span> 21</span> November 2011</p>
            </div>
            
            <div class="boxcontent">
            	<h4> Dit is een post <img  src="images/titelTeken.gif" alt="scheidingsteken" title="scheidingsteken" />  </h4>
                
                <p class="tekst">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard              				 			dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. </p>
    
    			<p class="tekst">It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It 			was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing 									 			software like Aldus PageMaker including versions of Lorem Ipsum.
            	</p>
            
          </div>
            
      </div>
        
      
      <div class="widgets">
            *<ul>
    	* * *	<li>. PAGES
     * * * * * *	<ul>
     * * * * * * * *	<li>about</li>
    					<li>nog tekst</li>
                        <li>nog meer tekst</li>
    				</ul></li>
     * * * *	<li><hr /></li>
     * * * *	<li><span>.</span>Leve nutteloze Tag Clouds
    				die geen nut hebben…</li>
     * * * *	<li><hr /></li>
     * * * *	<li>. Wie zoekt...</li>
     			<li><input type="text" /></li>
     * *	</ul>
      </div>
      
      
      <div class="boxartikel">
        	<div class="datum"><p><span> 21</span> November 2011</p>
            </div>
            
            <div class="boxcontent">
            	<h4> Dit is een post <img  src="images/titelTeken.gif" alt="scheidingsteken" title="scheidingsteken" />  </h4>
                
              <p class="tekst">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. </p>
    
    		<p class="tekst">It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
            </p>
            </div>
      </div>
      
      <div class="dummyFooter">
      </div>
        
    </div>
    
    
    
    </body>
    </html>
    no votes  

  5. #5
    Darkside331's Avatar
    Registered
    13/09/08
    Location
    Ooigem
    Posts
    1,219
    iTrader
    19 (100%)
    Mentioned
    0 Post(s)
    Quote Originally Posted by W0utR View Post
    This quote is hidden because you are ignoring this member. Show
    Er staat toch al hoe je het kan oplossen?
    Hja ok maar euchm, Sinds wanneer heb je voor een UL een container nodig of een P tag?
    no votes  

  6. #6
    scipicore's Avatar
    Registered
    10/10/03
    Location
    Gent
    Posts
    5,535
    iTrader
    25 (96%)
    Mentioned
    0 Post(s)
    Reputation
    7/20
    Waarom staan die sterretjes daar in gods naam? :/
    Als ik dit niet heb ben ik geen approved 9-lifer.
    no votes  

  7. #7
    W0utR's Avatar
    Registered
    16/04/08
    Location
    Hong Kong
    Posts
    1,989
    iTrader
    6 (100%)
    Mentioned
    0 Post(s)
    Reputation
    7/9
    Quote Originally Posted by Darkside331 View Post
    This quote is hidden because you are ignoring this member. Show
    Hja ok maar euchm, Sinds wanneer heb je voor een UL een container nodig of een P tag?
    Dat heb je altijd al nodig gehad, niet voor de UL, maar wel voor je tekst binnen je LI tag
    no votes  

  8. #8
    Zero Grav's Avatar
    Registered
    06/06/04
    Location
    Bilzen
    Posts
    8,805
    iTrader
    18 (100%)
    Mentioned
    0 Post(s)
    Reputation
    42/128
    Het probleem zijn gewoon die sterren.. Voor de rest is die code ook niet echt 100%, maar zonder die sterren geeft em alleszins geen validatie fouten. Ik neem aan dat ge die wilt gebruiken voor het inspringen, maar dat is niet correct.
    no votes  

  9. #9
    Darkside331's Avatar
    Registered
    13/09/08
    Location
    Ooigem
    Posts
    1,219
    iTrader
    19 (100%)
    Mentioned
    0 Post(s)
    Quote Originally Posted by Zero Grav View Post
    This quote is hidden because you are ignoring this member. Show
    Het probleem zijn gewoon die sterren.. Voor de rest is die code ook niet echt 100%, maar zonder die sterren geeft em alleszins geen validatie fouten. Ik neem aan dat ge die wilt gebruiken voor het inspringen, maar dat is niet correct.
    Ok Merci! De sterretjes gaven inderdaad de fouten. Maar deze zag ik niet in dreamweaver. Na alle spaties te hebben gewist en opnieuw te schrijven werkte het perfect.
    no votes  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in