Hallo,

Hoe kan ik deze errors wegwerken. Ik wil men pagina xhtml valid maken.
Error

Grtzz Pieter

[edit]Dit is het stukje code waar een fout in zit.

<img style="margin: 1px; margin-left: 0px" onMouseover="this.style.cursor='pointer'" onClick="sendtext(document.addbericht.bericht, ':)')" src="files/images/smilies/smile.gif" alt="Emoticon" />
		<img style="margin: 1px" onMouseover="this.style.cursor='pointer'" onClick="sendtext(document.addbericht.bericht, ':D')" src="files/images/smilies/biggrin.gif" alt="Emoticon" />
		<img style="margin: 1px" onMouseover="this.style.cursor='pointer'" onClick="sendtext(document.addbericht.bericht, ':p')" src="files/images/smilies/tongue.gif" alt="Emoticon" />
		<img style="margin: 1px" onMouseover="this.style.cursor='pointer'" onClick="sendtext(document.addbericht.bericht, ':(')" src="files/images/smilies/sad.gif" alt="Emoticon" />
		<img style="margin: 1px" onMouseover="this.style.cursor='pointer'" onClick="sendtext(document.addbericht.bericht, ';)')" src="files/images/smilies/wink.gif" alt="Emoticon" />
		<img style="margin: 1px" onMouseover="this.style.cursor='pointer'" onClick="sendtext(document.addbericht.bericht, ':angry')" src="files/images/smilies/angry.gif" alt="Emoticon" /><br />
		<img style="margin: 1px; margin-left: 0px" onMouseover="this.style.cursor='pointer'" onClick="sendtext(document.addbericht.bericht, ':roll')" src="files/images/smilies/rolleyes.gif" alt="Emoticon" />
		<img style="margin: 1px" onMouseover="this.style.cursor='pointer'" onClick="sendtext(document.addbericht.bericht, ':kiss')" src="files/images/smilies/kiss.gif" alt="Emoticon" />
		<img style="margin: 1px" onMouseover="this.style.cursor='pointer'" onClick="sendtext(document.addbericht.bericht, ':cool')" src="files/images/smilies/cool.gif" alt="Emoticon" />
		<img style="margin: 1px" onMouseover="this.style.cursor='pointer'" onClick="sendtext(document.addbericht.bericht, ':cry')" src="files/images/smilies/cry.gif" alt="Emoticon" />
		<img style="margin: 1px" onMouseover="this.style.cursor='pointer'" onClick="sendtext(document.addbericht.bericht, ':huh')" src="files/images/smilies/huh.gif" alt="Emoticon" />
		<img style="margin: 1px" onMouseover="this.style.cursor='pointer'" onClick="sendtext(document.addbericht.bericht, ':omg')" src="files/images/smilies/omg.gif" alt="Emoticon" />
[/edit]
voor de warning ipv & deze gebruiken: &amp;
onclick en onmouseover weet ik hem niet..
die warning wist ik.
Het gaat juist over die onmouseover en on click
Waarom zet je de opmaak in jouw xhtml? Dat maakt onderhoud uitermate lastig en je kunt tig keer dezelfde code gaan inkloppen.

Zet de boel in een stylesheet, maar een aparte class aan en klaar ben je. Scheelt je een hele berg ellende.

Tevens kun je dan xhtml strict gaan gebruiken.
Wat is het probleem?
"This Page Is Valid XHTML 1.0 Transitional!"
Alleen die ene warning, dat is inderdaad &amp;

Tidy zegt trouwens:

HTML Validation Result
----------------------
http://www.kljzaffelare.be/home.php?menu=gb

line 210 column 72 - Warning: <img> element not empty or not closed
line 211 column 50 - Warning: <img> element not empty or not closed
line 212 column 48 - Warning: <img> element not empty or not closed
line 213 column 47 - Warning: <img> element not empty or not closed
line 214 column 49 - Warning: <img> element not empty or not closed
line 319 column 6 - Warning: unescaped & which should be written as &amp;
line 25 column 1 - Warning: <script> escaping malformed URI reference
line 210 column 72 - Warning: <img> lacks "alt" attribute
line 211 column 50 - Warning: <img> lacks "alt" attribute
line 212 column 48 - Warning: <img> lacks "alt" attribute
line 213 column 47 - Warning: <img> lacks "alt" attribute
line 214 column 49 - Warning: <img> lacks "alt" attribute

0 errors / 12 warnings


Heb al iets gevonden.
Heb ergens anders een ubb balk gedownload en die smilies zaten daarin verwerkt.

Grtzz Pieter

@niek dit was omdat ik allles aan het veranderen was

Reageren