foutje in html code van een menu

Status
Niet open voor verdere reacties.

djeric

Gebruiker
Lid geworden
22 nov 2006
Berichten
955
hallo. beste wensen allemaal.

mijn probleem:

de html validator vind fouten in de volgende html code:

HTML:
<table>
	<tr>
		<td><h4> Dj eric eclusief geluid: 
		<ul>
		<li> cd's</li>
		<li> microfoon (alleen op aanvraag)</li>
		<li> koptelefoon</li>
		<li> inclusief dj kosten: 25€ p/u</li>
                <li> exclusief reiskosten vergoeding!</li>
		</td>
		<td><img src="images/eric.jpg" alt="apresski dj eric"></td>
	</tr>
	<tr>
                <td><h4> Set A bestaat uit:
		<ul>
		<li> mengtafel</li>
		<li> cd speler (dubbele speler)</li>
		<li> versterker</li>
		<li> 2 speakers a 200watt p/s. (bij grote groepen 4 speakers a 200watt p/s.</li>
		<li> e.v.t. inbegrepen en aan te vullen met:</li>
		<li> lichtslang en rookmachine</li>
		<li> de kosten hiervan zijn vanaf:</li>
		<li> €20 p/u inclusief dj kosten</li>
                </ul></h4>
		</td>
		<td><img src="images/a-setje.jpg" alt="de skistorm set - A"></td>
	</tr>
	<tr>
		<td><h4>Set B bestaat uit:
		<ul> 
		<li>drive in tafel (zonder lichtbar)</li>
		<li>mengtafel - 2xcd speler (dubbele speler)</li>
		<li>versterker - 6 speakers a 200watt p/s</li>
		<li>moonlight en moonflower</li>
		<li>e.v.t. inbegrepen en aan te vullen met:</li>
		<li>lichtslang en rookmachine</li>
		<li>de kosten hiervan zijn vanaf:</li>
		<li> €25 p/u inclusief dj kosten</li>
		</ul></h4>
		</td>
		<td><img src="images/b-setje.jpg" alt="de skistorm set - B"></td>
	</tr>
</table>

iets is er niet goed aan het menu. ik krijg 5 fouten (aldus validator volgens strict 4.01 en utf-8 (zonder bom)

de validator fout:

PHP:
 Line 40, Column 6: document type does not allow element "UL" here; missing one of "OBJECT", "MAP", "BUTTON" start-tag 
		<ul>✉ 
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 46, Column 7: end tag for "UL" omitted, but its declaration does not permit this 
		</td>✉ 
•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. 
 Line 40, Column 3: start tag was here 
		<ul> Line 46, Column 7: end tag for "H4" omitted, but its declaration does not permit this 
		</td>✉ 
•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. 
 Line 39, Column 7: start tag was here 
		<td><h4> Dj eric eclusief geluid:  Line 51, Column 6: document type does not allow element "UL" here; missing one of "OBJECT", "MAP", "BUTTON" start-tag 
		<ul>✉ 
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 66, Column 6: document type does not allow element "UL" here; missing one of "OBJECT", "MAP", "BUTTON" start-tag 
		<ul> ✉ 
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>").
 
Je mag geen lijst in een h4 zetten. Dus in plaats van
HTML:
<td><h4>Set B bestaat uit:
        <ul> 
        <li>drive in tafel (zonder lichtbar)</li>
        <li>mengtafel - 2xcd speler (dubbele speler)</li>
        <li>versterker - 6 speakers a 200watt p/s</li>
        <li>moonlight en moonflower</li>
        <li>e.v.t. inbegrepen en aan te vullen met:</li>
        <li>lichtslang en rookmachine</li>
        <li>de kosten hiervan zijn vanaf:</li>
        <li> €25 p/u inclusief dj kosten</li>
        </ul></h4>
        </td>
moet je
HTML:
<td><h4>Set B bestaat uit:</h4>
        <ul> 
        <li>drive in tafel (zonder lichtbar)</li>
        <li>mengtafel - 2xcd speler (dubbele speler)</li>
        <li>versterker - 6 speakers a 200watt p/s</li>
        <li>moonlight en moonflower</li>
        <li>e.v.t. inbegrepen en aan te vullen met:</li>
        <li>lichtslang en rookmachine</li>
        <li>de kosten hiervan zijn vanaf:</li>
        <li> €25 p/u inclusief dj kosten</li>
        </ul>
        </td>
gebruiken.
Ook ben je na je eerste lijst een "</ul>" vergeten.
 
Je mag geen lijst in een h4 zetten.
Ook ben je na je eerste lijst een "</ul>" vergeten.

van die <h4> had ik niet geweten. vind die html validator echt soms zo vaag geschreven. maar leer het wel een beetje zo. bedankt. nu heb ik alle fouten kunnen herstellen. it works:thumb:

bedankt.:d
 
nu heb ik alle fouten kunnen herstellen.
Behalve het tikfoutje "eclusief" (bovenaan in de prijslijst.html), want tikfoutjes in tekst slippen door de html-validator. ;)

Heb je trouwens ook de HTML-Tidy add-on voor Firefox al binnen?
Als je dan in FF de broncode bekijkt, is dat een ingebouwde html-validator. Deze geeft vaak wat bruikbaarder tips over wat er aan de hand is dan de raadsel-taal van de losse w3c html-validator.
Geeft soms ook wat andere signalen af.
Door ze alle twee te gebruiken, krijg je de schoonste html! :)

Met vriendelijke groet,
CSShunter
________________
En een zakelijk tipje n.a.v. "Prijslijst 2011/2012": ik zou me nu nog niet vastleggen op 2012, want je weet nooit wat de prijzen dit jaar gaan doen (en het kabinet, met z'n BTW-fratsen). Wellicht wel na de zomervakantie van 2011 voor het dan losbarstende seizoen.
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan