Thread: Validator probleem
-
13-12-2011, 12:59 #1
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
Dit is de HTML code waar de 7 error in plaatsvinden.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>
Als ik laat valideren krijg ik dan deze errors:
Deze error krijg ik 7 keer maar dan op andere LI'sCode: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.
Bedankt
no votes
-
-
13-12-2011, 13:27 #2Member
- 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
-
13-12-2011, 13:29 #3Member
- Registered
- 16/04/08
- Location
- Hong Kong
- Posts
- 1,989
- iTrader
- 6 (100%)
- Mentioned
- 0 Post(s)
- Reputation
- 7/9
Er staat toch al hoe je het kan oplossen?putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>)no votes
-
13-12-2011, 13:43 #4
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
-
13-12-2011, 13:44 #5no votes
-
13-12-2011, 13:59 #6Approved 9-lifer
- 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
-
13-12-2011, 14:26 #7Member
- Registered
- 16/04/08
- Location
- Hong Kong
- Posts
- 1,989
- iTrader
- 6 (100%)
- Mentioned
- 0 Post(s)
- Reputation
- 7/9
no votes
-
13-12-2011, 14:30 #8Member
- 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
-
13-12-2011, 14:40 #9no votes

