Suche im Forum:
Suchen


Autor Nachricht
Beitrag01.07.2008 um 14:37 (UTC)    
Titel: W3 Valdiator [#Close]

Hi,

Ich gestalte derzeit eine Website.
jedoch habe ich folgendes problem:
Wenn ich meine Quelltext bei W3-HTML-Validator überprüfe kommen immer folgende Fehler:

Zitat:
# Line 15, Column 60: there is no attribute "onMouseOver".

…on"><a href="?c=sign_up" onMouseOver="document.Bild.src='images/go_signUP2.pn



You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
# Error Line 15, Column 116: there is no attribute "onMouseOut".

…'images/go_signUP2.png';" onMouseOut="document.Bild.src='images/go_signUP.png



You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
# Error Line 15, Column 164: there is no attribute "alt".

…ild.src='images/go_signUP.png';" alt="Jetzt kostenlos anmelden!" />



You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
# Error Line 16, Column 116: end tag for element "a" which is not open.

…alt="Jetzt kostenlos anmelden!" /></a></div>



The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

If this error occurred in a script section of your document, you should probably read this FAQ entry.
# Error Line 16, Column > 80: XML Parsing Error: Opening and ending tag mismatch: div line 15 and a.

…width="450" height="60" name="Bild" alt="Jetzt kostenlos anmelden!" /></a></d…


# Error Line 16, Column > 80: XML Parsing Error: Opening and ending tag mismatch: body line 9 and div.

…width="450" height="60" name="Bild" alt="Jetzt kostenlos anmelden!" /></a></d…


# Error Line 17, Column 7: XML Parsing Error: Opening and ending tag mismatch: html line 2 and body.

</body>


mein HTML Quelltext:
Zitat:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Titel</title>

<link href="style/style_css_startpg.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="background_start">
</div>
<div class="txt_main">TEXT</div>
<div class="login_main"></div>
<div class="signup_button"><a href="?c=sign_up" onMouseOver="document.Bild.src='images/go_signUP2.png';" onMouseOut="document.Bild.src='images/go_signUP.png';" alt="Jetzt kostenlos anmelden!" />
<img border="0" src="images/go_signUP.png" width="450" height="60" name="Bild" alt="Jetzt kostenlos anmelden!" /></a></div>
</body>
</html>


Wie kann ich diese Fehler beheben?
Ich sehe da keinen Fehler Sad


Zuletzt bearbeitet von kino-trailer am 01.07.2008, 15:57, insgesamt einmal bearbeitet
Beitrag01.07.2008 um 14:45 (UTC)    
Titel:

es gibt bei einem link nicht das attribut onmouseover darf nur bei bildenr etc sein denn dieses tut ja in einem text link ein bild als onmouseover machen

du kannst nur im img tag dann auch onmouseover mit einem bild machen das ist nicht in einem normalen link erlaubt mach doch so:

<a href="url"><img src="bildurl" onmouseover="..." border="0"></img></a>
______________
by hoodride.de.tl
Beitrag01.07.2008 um 14:48 (UTC)    
Titel:

Nein es geht auch im <a Tag!

Selbst bei änderung überträgt sich der fehler auf das <img Tag

aber trotzdem thX
Beitrag01.07.2008 um 14:49 (UTC)    
Titel:

#Update

Alle Fehler bis auf das onMouseOver behoben =)

#Update 2

Mouseover andersweitig gelöst


#Closed


Zuletzt bearbeitet von kino-trailer am 01.07.2008, 15:56, insgesamt einmal bearbeitet
Beitrag01.07.2008 um 14:55 (UTC)    
Titel:

also war ich doch richtig damit?

es geht im a tag ja klar aber wie willst du ein onmouseover bei einem text machen und der w3c ist halt sehr pingelig udn wenn etwas nicht standardmäßig auf diener hp ist aber trotzdme funktioniert ist es für den validator ein fehler

obwohl 99% aller webseiten im internet fehler enthalten aber trotzdme funktionierne denn man muss sich nicht an die standards vom w3c halten eigentlich ^^ deien hp muss nur funktionierne ^^
______________
by hoodride.de.tl
Beitrag01.07.2008 um 14:57 (UTC)    
Titel:

es bezieht sich dann automatisch aufs <img
Beiträge der letzten Zeit anzeigen:   


Powered by phpBB © 2001, 2005 phpBB Group
Deutsche Übersetzung von phpBB.de