Validator

Status
Niet open voor verdere reacties.

timmel789

Gebruiker
Lid geworden
16 dec 2009
Berichten
98
Ik heb een website gemaakt... nu heb ik deze door de validator laten gaan en hij geeft een aantal fouten.... ik heb er een deel opgelost maar niet alle zou iemand mij kunnen helpen:

Line 40, Column 64: document type does not allow element "INPUT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag
<input type="hidden" name="template" value="exampletemplate"><br>

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Line 40, Column 68: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag
<input type="hidden" name="template" value="exampletemplate"><br>

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Line 99, Column 24: document type does not allow element "DIV" here
<div class="infobalk">

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Line 114, Column 7: end tag for "TABLE" omitted, but its declaration does not permit this
</div>

You forgot to close a tag, or
you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.
The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.



Iemand enig idee?


Groeten,

Tim
 
Het is handig als je dit soort dingen in een [ quote ] tag zet. Ohja, en de link naar, of source code (tussen [ html ] en [/ html ]) van je pagina is ook wel handig, want nu is het deels gissen.

Line 40, Column 64: document type does not allow element "INPUT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag
je hebt ergens een <input> staan (inline element) zonder een block-container er omheen. Dit kan je oplossen door het in bijvoorbeeld een div-element of p-element te zetten.
Line 40, Column 68: document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag
zie hierboven.
Line 99, Column 24: document type does not allow element "DIV" here
je hebt een <div> in een inline element gezet? Of op een andere plek waar het niet 'mag'.
Line 114, Column 7: end tag for "TABLE" omitted, but its declaration does not permit this
je bent ergens een </table> vergeten.
 
Dit is mijn HTML:

HTML:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
<head>
	<link rel="stylesheet" type="text/css" href="default.css"> 
	<title>OneDayOnly.nl</title> 
</head>



<body>

<div id="header"> 
	<div class="head"> </div>
	<div class="head1"> </div> 
	<div class="head2"> </div> 
	</div>
	
<div class="tussenpost"> </div>

<div id="middelsection">
	<div class="mainmenu"> 
		<div class="menu1"> 
			<a href="index.html" class="roll-over">Dag aanbieding</a> 
		</div>
		<div class="menu2"> 
			<a href="nieuwsbrief.html"class="roll-over">Nieuwsbrief</a> 
		</div>
		<div class="menu3"> 
			<a href="werkt.html"class="roll-over">Hoe werkt het?</a> 
		</div>
		<div class="menu4"> 
			<a href="contact.html"class="roll-over">Contact</a> 
		</div>
	</div>
<div id="content"> 
	<div class="middle">
	<h1>Vul uw gegevens in:</h1>
		<form action="contact.php" method="post" >
			<!-- this hidden input references the file 'exampletemplate.txt' in the main directory of the webfolder -->
			<input type="hidden" name="template" value="exampletemplate"><br>
			<table>
				<tr>
					<!-- these fields are all used in the Template, and they will be sent to you -->
					<td><label for="name">Naam:</label></td>
					<td><input type="text" name="naam" value=""></td>
				</tr>
				<tr>
					<!-- these fields are all used in the Template, and they will be sent to you -->
					<td><label for="name">Achternaam:</label></td>
					<td><input type="text" name="Achternaam" value=""></td>
				</tr>
				<tr>
					<!-- these fields are all used in the Template, and they will be sent to you -->
					<td><label for="name">Straat:</label></td>
					<td><input type="text" name="Straat" value="" ></td>
				</tr>
				<tr>

					<!-- these fields are all used in the Template, and they will be sent to you -->
					<td><label for="name">Huisnummer:</label></td>
					<td><input type="text" name="Straat" value="" ></td>
				</tr>
				<tr>	

					<!-- these fields are all used in the Template, and they will be sent to you -->
					<td><label for="name">Postcode:</label></td>
					<td><input type="text" name="postcode" value="" ></td>
				</tr>
				<tr>
					
					<!-- these fields are all used in the Template, and they will be sent to you -->
					<td><label for="name">Plaats:</label></td>
					<td><input type="text" name="Plaats" value="" ></td>

				</tr>
				<tr>
					
					<!-- these fields are all used in the Template, and they will be sent to you -->
					<td><label for="name">Telefoon:</label></td>
					<td><input type="text" name="Telefoon" value="" ></td>
				
				</tr>
				<tr>
					
					<!-- these fields are all used in the Template, and they will be sent to you -->
					<td><label for="name">E-mail:</label></td>
					<td><input type="text" name="E-mail" value="" ></td>








					<td colspan="2"><input type="submit" value="Verzenden" ></td>
				</tr>
		
		<div class="infobalk">
			<p class="infotitel"> OneDayOnly.nl </p> <br>
			<p class="middeltekst"> Eyes up, want wij hebben de beste deal! Elke dag weer de beste deal, soms wel tot 80% goedkoper dan in de winkel.<br> <br>Wij bieden u de laagste prijs van Nederland.</p> <br>
			<p class="infotitel2"> Onze Service: </p> <br>
				<ul>
				<li>De beste deals</li>
				<li>De snelste service</li>
				<li>Betalen Via Ideal</li>
				<li>Korting tot 80%</li>
							</ul> <br>
			<p class="middeltekst"> Producten worden aangeboden door OneDayOnly.nl, OneDayOnly.nl is partner van Isupp.com<br> </p> 
			
		</div>
		
		
	</div>
		
		
	</div>
	

<div class="tussenpost"> </div>
	
<div id="foot"> 
	<div class="footer">
	<div class="ideal"> </div>
	<p class="copyright">	Copyright 2010- Alle rechten voorbehouden- Algemene voorwareden	</P>	
	</div>
	
	</div>
	</div>
</body>


ziet iemand waar die fouten dan zitten?

Groeten,

Tim
 
Line 114, Column 7: end tag for "FORM" omitted, but its declaration does not permit this
</div>

You forgot to close a tag, or
you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.
The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.

deze heb ik nog ... de rest heb ik eruit gekregen.... en ik heb nog een warning die ik niet kan vinden of niet snap:

Line 44, Column 22: reference to non-existent ID "NAME"
<td><label for="name">Naam:</label></td>

This error can be triggered by:

A non-existent input, select or textarea element
A missing id attribute
A typographical error in the id attribute
Try to check the spelling and case of the id you are referring to.

bedankt voor jullie hulp
 
Je mist een </table> en een </html> tag.

De </html> gaat helemaal onderaan; de table open je op regel 38, maar sluit je nergens.

Overgens zie ik dat je netjes indent bij nieuwe levels, maar dit niet consistent doet. Anders had je je missende table-sluit-tag wel opgemerkt.


Label for='' werkt op ID's. Je gebruikt zelf name='', maar dit moet dus id='' zijn. En dus wel dezelfde als de for='':
HTML:
<label for='elementid'>
   <input id='elementid' />
</label>
 
Line 114, Column 7: end tag for "FORM" omitted, but its declaration does not permit this
</div>

You forgot to close a tag, or
you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.
The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.


Dit de laatste error die ik heb... iemand een idee hoe ik dit oplos... want op regel 114 staat helemaal geen tekst of code.
 
Waarom beweer je trouwens dat je xml levert als dat niet zo is?
HTML:
<?xml version="1.0" encoding="UTF-8"?>
 
Weet nog iemand hoe ik dit moet oplossen. dan heb ik alle fouten eruit gehaald.

Line 114, Column 7: end tag for "FORM" omitted, but its declaration does not permit this
</div>

You forgot to close a tag, or
you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.
The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.
 
Je hebt je <form> kennelijk niet afgesloten met een </form>. Misschien wil de validator dat op een mooie lege regel zetten.
Moet ie hier zitten?
HTML:
...
        </table>
    </form>
<div class="infobalk">
....
Met vriendelijke groet,
CSShunter
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan