login  Naam:   Wachtwoord: 
Registreer je!
 Forum

xhtml fouten

Offline stienoco - 17/05/2008 16:39 (laatste wijziging 17/05/2008 16:42)
Avatar van stienocoOnbekend Ik ben een website (http://www.apotheekmertens.be) aan het omzetten naar xhtml, maar ik krijg nog enkele errors als ik mijn site laat nakijken op http://validator.w3.org/.

Ik zou namelijk geen <hr> mogen gebruiken (dat doe ik veel in het menu), maar ik zou niet weten hoe ik dit verander.

Ook zou ik geen h3 mogen gebruiken terwijl h1 en h2 wel mag??

En nog een laatste fout die ik niet weet hoe op te lossen, ik mag 2 keer geen <table> gebruiken??

Weet iemand hoe ik deze fouten (of toch al 1 of 2 ervan) zou kunnen wechkrijgen?

*edit*

Vergeet ik nog de code te zetten :d http://plaatscode.be/8445

16 antwoorden

Gesponsorde links
Offline stienoco - 17/05/2008 16:44
Avatar van stienoco Onbekend Heu, ja dat heb ik gedaan (kijk maar in de broncode (ik heb de 1ste post gewijzigt)), maar op www.apotheekmertens.be staat nog niet de xhtml versie.
Offline nvleeuwen88 - 17/05/2008 16:46 (laatste wijziging 17/05/2008 16:47)
Avatar van nvleeuwen88 HTML interesse als je firefox kan je een plugin dowloaden en dan zie je rechtsonderin een x-je of een v-tje. v-tje is goed(kleur groen) en x-je is nog niet xhtml strict. en dan klik je daarop en zie je al de fouten zo gaat je werk stukken sneller.
http://users.skynet.be/mgueury/mozilla/

Owja over die H3 misschien heb je er nog iets tussen gezet dus zoiets: <h3><p align="center">sdfsdasdf</h3></p> je moet dan gewoon <h3></h3> doen.
Offline nvleeuwen88 - 17/05/2008 16:49
Avatar van nvleeuwen88 HTML interesse ja die heb ik ook die is zeker handig om te gebruiken 
Offline Martijn - 17/05/2008 16:49
Avatar van Martijn Crew PHP ikzelf gebruik tidy, werkt prima vind ik. Samen met Firebug een prima team.
Offline Ultimatum - 17/05/2008 16:49
Avatar van Ultimatum PHP expert Als je firefox hebt, dan is html tidy een hele handige plugin. Ik krijg in totaal 159 fouten. 1 van de fouten is dit:
  1. document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</font></center></layer>');


En zo zijn er denk ik wel 100 soorgelijke warnings , dit staat er als reden:
Citaat:
'<' + '/' + letter not allowed here


En bij de help staat dit:
Citaat:
"<" + "/" + letter not allowed here
Cause:

The 2 characters "</" have been detected in a wrong place.
Example:

In most cases, this is due to wrong javascript:
Good document.write("</h1>");
Good document.write("</h1>");
Solution:

Add a "" in the javascript code.


Kortom, zet je javascript in een extern .js bestand ipv in de head.
Offline Ultimatum - 17/05/2008 16:55
Avatar van Ultimatum PHP expert Sommige mensen laten de taskbar automatisch verdwijnen als ze niet met de muis in de buurt komen, in zo'n geval is zo'n klok heel handig.
Offline stienoco - 17/05/2008 17:16
Avatar van stienoco Onbekend
Ultimatum schreef:
Als je firefox hebt, dan is html tidy een hele handige plugin. Ik krijg in totaal 159 fouten. 1 van de fouten is dit:
[..code..]

En zo zijn er denk ik wel 100 soorgelijke warnings , dit staat er als reden:
[..quote..]

Kortom, zet je javascript in een extern .js bestand ipv in de head.


Heu, en je hebt het over de code die ik heb geplaats (dus niet over www.apotheekmertens.be maar over http://plaatscode.be/8445 , ik heb daar toch nergens een klokje gezien hoor??
Ik was trouwens van plan om het in de xhtml versie weg te laten, wat er wil is van javascript is de teller beneden.

Maar van die <h3> zal ik kijken of het juist is gedaan of niet (zou kunnen van niet)
Offline nvleeuwen88 - 17/05/2008 17:20
Avatar van nvleeuwen88 HTML interesse even een andere tip zet niet je menu tussen <h3></h3>
maar gebruik wat er voor gemaakt is <ul><li>
dus zoiets

<ul>
<li>Home</li>
<li>etc.</li>
</ul>
Offline stienoco - 17/05/2008 17:23
Avatar van stienoco Onbekend En, hoe krijg ik dan dat lastige bolletje daarvoor weg en zorg er voor dat er tussen elk menu een streep komt te staan?
Offline stienoco - 17/05/2008 17:27
Avatar van stienoco Onbekend Heu, en kan je wat beter uitleggen hoe met css (en ook hoe je de juiste groote er aan geeft)? zo goed ben ik niet in css 
Offline stienoco - 17/05/2008 17:30 (laatste wijziging 17/05/2008 18:05)
Avatar van stienoco Onbekend Ok, ik zal even knutselen.

*edit*

Heu, ik vind niet hoe je er een lijn kunt onder trekken, weet iemand mischien hoe dat moet?
Offline stienoco - 17/05/2008 18:23
Avatar van stienoco Onbekend Goed idee, weet jij er een goede?

Ik heb wel iets gevonden maar ik weet niet hoe je de streep er onder zet, om het boven te doen is het zo:

  1. li{
  2. border-top: 1px solid black;;
  3. }

Offline stienoco - 17/05/2008 18:46
Avatar van stienoco Onbekend Ok, hard bedankt, ik heb momenteel dit:

  1. ul{
  2. margin: 0px;
  3. list-style-type: none;
  4. }
  5. li{
  6. margin-bottom: 10px;
  7. border-bottom: 1px solid black;
  8. border-color: gray;
  9. }


Is er ook een manier om tussen de tekst en die lijn nog wat extra plaats toe te voegen (anders zijn die lijnen nogal opeen geplakt )

Ik ga ook zeker die tutorials eens bekijken (ben een echte nul css)
Offline stienoco - 17/05/2008 18:53 (laatste wijziging 17/05/2008 18:56)
Avatar van stienoco Onbekend Ok, bedankt, ik denk dat het er nu wel goed uit ziet, ik ga wel pas morgen met die tutorials beginnen (nu niet zo veel tijd )

*edit*

Nu heb ik nog 8 fouten (javascript niet meegerekent), nog altijd bij h3 en 5 (niet bij 1 en 2) en bij table (maar niet altijd).
Maar nu krijg ik er ook een bij <ul>??
Offline Ultimatum - 17/05/2008 19:03
Avatar van Ultimatum PHP expert Kan je eens de fouten die je van de validator krijgt hier neer plakken dan?
Offline stienoco - 17/05/2008 19:10
Avatar van stienoco Onbekend Hier zijn ze (moet ik die tussen error tags zetten of niet?)

Line 21, Column 13: document type does not allow element "h3" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
<h3>&#9993;
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 22, Column 13: document type does not allow element "ul" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
<ul>&#9993;
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 41, Column 13: document type does not allow element "h3" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
<h3>&#9993;
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 51, Column 12: document type does not allow element "h3" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
<h3>Openingsuren:</h3>&#9993;
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 52, Column 37: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
<table width="80%" border="3">&#9993;
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 69, Column 11: document type does not allow element "h3" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
<h3>in de zomervakantie:</h3>&#9993;
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 70, Column 37: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
<table width="80%" border="3">&#9993;
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 90, Column 25: document type does not allow element "h5" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
<br /><br /><h5>©2007Stijn Sallets</h5>&#9993;
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>").
Gesponsorde links
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.187s