Antworten auf deine Fragen:
Neues Thema erstellen

Fragen zum W3C Validator

topho

Nicht mehr ganz neu hier

Hi PSD-Tutorials Community,

Ich hab eine Webseite und habe diese mit dem WC3 Validator auf The W3C Markup Validation Service "gecheckt" .

es tauchen 6 fehler auf und eine warnung auf, jedoch verstehe ich diese "fehler" nicht.

ich wuerde die Seite gerne fehlerfrei haben, doch kommen mir die fehler unlogisch vor.

z.B. zeigt er mir den fehler beim "&" zeichen an ich habe im code & benutzt so wie es da steht... wird aber als fehler angezeigt...

hier die liste der fehler die auftauchen, mit sicherheit koennt ihr mir da weiterhelfen:

Validation Output: 6 Errors


  1. warning.png
    Line 10, Column 215: character "&" is the first character of a delimiter but occurred as data ?anie Layoutów, Projektowanie Ulotek & Katalogów, Projektowanie Wizytówek, Obr
    This message may appear in several cases:
    • You tried to include the "<" character in your page: you should escape it as "&lt;"
    • You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
    • Another possibility is that you forgot to close quotes in a previous tag.
  2. error.png
    Line 68, Column 50: Attribute "topmargin" is not a valid attribute. Did you mean "marginwidth" or "marginheight"? ?="#373737" text="#ff8a00" topmargin="200" onload="MM_preloadImages('images/Pa
    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.
  3. error.png
    Line 77, Column 81: required attribute "alt" not specified ?e_02.png" width="215" height="106" /></td>
    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
  4. error.png
    Line 87, Column 68: required attribute "alt" not specified ?c="images/Page_04.png" width="177" height="69" /></td>
    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
  5. error.png
    Line 93, Column 68: required attribute "alt" not specified ?c="images/Page_10.png" width="175" height="69" /></td>
    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
  6. error.png
    Line 104, Column 76: Attribute "background" exists, but can not be used for this element. ?" align="right" valign="top" background="images/Page_13.png"><p>&nbsp;
    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.
  7. error.png
    Line 10, Column > 80: XML Parsing Error: xmlParseEntityRef: no name ? - Tworzenie Stron Internetowych, Aktualizacja Stron WWW, Projektowanie Baner?


Gruss,

Topho
 

sokie

Mod | Web

AW: Fragen zum WC3 Validator

welche doctype hast du verwendet?
fehler 3-5 sind klar, da fehlt das "alt" attribut am img tag
fehler 2 topmargin ist kein gültiges attribut ( besser wäre style="margin-top: 200px;" etc, noch besser alle formatierenden eigenschaften(css) im "style" bereich oder externer css zu formulieren(damit sollte sich fehler #6 auch lösen lassen)).
 
Zuletzt bearbeitet:

topho

Nicht mehr ganz neu hier

welche doctype hast du verwendet?
fehler 3-5 sind klar, da fehlt das "alt" attribut am img tag
fehler 2 topmargin ist kein gültiges attribut ( besser wäre style="margin-top: 200px;" etc, noch besser alle formatierenden eigenschaften(css) im "style" bereich oder externer css zu formulieren(damit sollte sich fehler #6 auch lösen lassen)).

wie sollte das mit dem "alt" denn aussehen? hab echt in diesem fall keine ahnung was das bedeuten soll?

Doctype: XHTML 1.0 Transitional

style="margin-top: 200px; macht, dass meine ganze seite um ein ganzes stueck nach unten geschoben wird...


hab das ganze mal zu XHTML 4.1 Transitional umgeformt nun hab ich "nurnoch" 5 fehler

Validation Output: 5 Errors


  1. error.png
    Line 68, Column 50: Attribute "TOPMARGIN" is not a valid attribute. Did you mean "marginwidth" or "marginheight"? ?="#373737" text="#ff8a00" topmargin="200" onLoad="MM_preloadImages('images/Pa
    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.
  2. error.png
    Line 77, Column 79: required attribute "ALT" not specified ?Page_02.png" width="215" height="106"></td>
    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
  3. error.png
    Line 87, Column 66: required attribute "ALT" not specified ?g src="images/Page_04.png" width="177" height="69"></td>
    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
  4. error.png
    Line 93, Column 66: required attribute "ALT" not specified ?g src="images/Page_10.png" width="175" height="69"></td>
    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
  5. error.png
    Line 104, Column 76: Attribute "BACKGROUND" is not a valid attribute. Did you mean "background"? ?" align="right" valign="top" background="images/Page_13.png"><p>&nbsp;
    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.
 
Zuletzt bearbeitet von einem Moderator:

esupanetz

Immer wieder mal da :-)

AW: Fragen zum WC3 Validator

Hallo topho,

bei jedem <img src="irgendeinordner/irgendeinbild.typ"> sollte vor dem Ende des Tags noch alt="Bildbeschreibende Stichworte" stehen.

Fehler 5 im 2. Fall: Offensichtlich hast du BACKGROUND geschrieben - und xhtml mag nur Kleinbuchstaben, sprich background ;-)

lG

Eva
 

topho

Nicht mehr ganz neu hier

AW: Fragen zum WC3 Validator

schuldigung, habe doch glatt die null vergessen, meinte natuerlich HTML 4.01 Transitional
bin jetzt so weit das mir nurnoch ein fehler angezeigt wird, habe background klein geschrieben wird aber immernoch als fehler angezeigt.. verstehe ich noch nicht ganz..
 
Zuletzt bearbeitet:

Designerist

Aktives Mitglied

AW: Fragen zum WC3 Validator

Wenn du magst: Poste den Link zu deiner Seite. Dann kann es ev. mit Firebug in Kombination mit dem Resultat von W3C herausgebröselt werden.
Gruss Designerist
 

topho

Nicht mehr ganz neu hier

AW: Fragen zum WC3 Validator


wundert euch nicht, die seite ist auf polnisch
es ist jetzt nur noch diese background sache,
habe eben backgroud am anfang von <td geschoben um zu gucken ob der fehler immer noch da ist und er war halt noch da, habe dann einfach mal background alles gros geschrieben, fehler war noch da, nun hab ichs wieder ans ende geschoben und klein geschrieben und der fehler ist immernoch da, bin also momentan am verzweifeln, weill endlich gruenes licht sehen, ich glaub ich muss css lernen und divtags damit ich nicht diese ganzen tabellen erstellen muss...
wer eventuell ne gute tutorial seite die alles von anfang an erklaert kennt, waer nett nen link mit pm an mich oder halt hier rein in den thread..

naja kommen wir zum eigentlichen thema zurueck: "background" fehler, oben ist der link also sonst koennt ihr da nochmal schauen, ich hab aufjedenfall keine idee mehr..
________________________________________________________
edit, okay ich sehe gerade das er automatisch meinen titel der seite hier reinpostet, ich wollte nicht spammen, damit das klar ist ^^
 
Zuletzt bearbeitet:

Designerist

Aktives Mitglied

AW: Fragen zum WC3 Validator

Tut mir leid, wirklich, dass ich im Moment nicht helfen kann! Es ist mir nicht möglich, den vollen Seiteninhalt herunterzuladen, also kann ich auch diese Tabellengeschichte nicht prüfen.

Die Meldung von W3C sehe ich, aber ohne vollständige Datei ist es bei diesem Code (Durcheinander;-)) schwierig durch zu blicken. Mit welchem Programm hast du die Site erstellt?

Deine Website wirkt gut, ich würde mich freuen, wenn du sie valid kriegst.

Grüsse
Designerist
 

leohh

CSS verliebt

AW: Fragen zum WC3 Validator

Ja dann nimm doch einfach nur noch die monierten Attribute aus den td-tags.
Und gib sie den Elementen -bzw. den Kinelementen ueber CSS ( so wie ich gesehen hab handelt es sich hierbei um tabellen, die den Zellen unterstehen. ) hast du doch beim body-Tag genau so gemacht. Wo ist da jetzt noch dein Problem an der Gesichte?
 

topho

Nicht mehr ganz neu hier

AW: Fragen zum WC3 Validator

- und solange noch keine deutsche Version existiert solltest du auch den Link rausmachen...

geht hier nicht um die seite sondern um den code somit spielt es keine rolle ob die seite auf polnisch, franzoesisch oder deutsch ist, der code ist englisch.

Zum eigentlichen Thema: Ich habe die Seite mit Dreamweaver CS4 erstellt.
Den Code koennt ihr euch hier ansehen:

Um die stelle mit dem "fehler" zu finden, strg+f und dann diese zeile einfuegen
valign="top" background="images/Page_13.png"

Hoffe ihr koennt mir helfen

Gruss Topho
 

cebito

undefined

AW: Fragen zum WC3 Validator

geht hier nicht um die seite sondern um den code somit spielt es keine rolle ob die seite auf polnisch, franzoesisch oder deutsch ist, der code ist englisch.
Schon klar, aber 99,9% der Besucher interessiert es überhaupt nicht, ob dein code 100%ig valide ist, dafür interessiert es sie, ob die Links funktionieren und auch drin ist was drauf steht....
Und sonst, wie sokie schon sagte -> Angemerkt in #2 -> "besser wäre style="
 

Overtone

Noch nicht viel geschrieben

AW: Fragen zum WC3 Validator

Das wichtigste lautet doch: Google interessiert es nicht ob die Seite 100% valide ist oder nicht. Im Gegenteil: Unter keinem Suchbegriff sind alle Seiten der Top 10 100% valide!
 

Designerist

Aktives Mitglied

AW: Fragen zum WC3 Validator

Das Dingens hat mir keine Ruhe gelassen, denn valider Code ist für manche Designer und Programmierer, die Seiten für Kunden machen, Ehrensache.

Also:
Linie 109:
<td width="486" height="489" align="right" valign="middle" style="background-image:images/Page_13.png">

Linie 146:
<td width="283" height="489" valign="top" style="background-image:images/Page_15.png">

Linie 193:
<td width="1024" height="121" valign="bottom" style="background-image:images/Page_18.png">

Nochmals durch den Validator checken lassen und freuen!!!

Gruss
Designerist
 

topho

Nicht mehr ganz neu hier

AW: Fragen zum WC3 Validator

Das Dingens hat mir keine Ruhe gelassen, denn valider Code ist für manche Designer und Programmierer, die Seiten für Kunden machen, Ehrensache.

Also:
Linie 109:
<td width="486" height="489" align="right" valign="middle" style="background-image:images/Page_13.png">

Linie 146:
<td width="283" height="489" valign="top" style="background-image:images/Page_15.png">

Linie 193:
<td width="1024" height="121" valign="bottom" style="background-image:images/Page_18.png">

Nochmals durch den Validator checken lassen und freuen!!!

Gruss
Designerist

Hey, danke fuers Interesse an meinem Validate!!
Ich habs gestern schon versucht mit dem style=...
, dachte ich mach was falsch, aber anscheinend nicht, denn es verschwinden die backgrounds dadurch komplett!
siehe hier:



verstehe also nun garnichts mehr ^^
es muss etwas damit zu tun haben, dass der flash in der tabelle ist! denn die anderen 2 backgrounds der unten und der rechts werden nicht als fehler angezeigt! der fehler ist in der tabelle in der sich der flash befindet...
 
Zuletzt bearbeitet:

leohh

CSS verliebt

AW: Fragen zum WC3 Validator

Mach dich mal bitte mit den richtigen Schreibweisen vertraut
Falsch:
HTML:
<td width="486" height="489" align="right" valign="middle" style="background-image:images/Page_13.png">

Richtig:
HTML:
<td width="486" height="489" align="right" valign="middle" style="background-image: url(images/Page_13.png);">

Hintergrundbild: background-image
 

topho

Nicht mehr ganz neu hier

AW: Fragen zum WC3 Validator

JUHU :)


Danke, danke, danke, an Alle die mir geholfen haben das zu erreichen!
Hiermit ist der Thread geloest und kann geclosed werden. :)
 
Bilder bitte hier hochladen und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Antworten auf deine Fragen:
Neues Thema erstellen

Willkommen auf PSD-Tutorials.de

In unseren Foren vernetzt du dich mit anderen Personen, um dich rund um die Themen Fotografie, Grafik, Gestaltung, Bildbearbeitung und 3D auszutauschen. Außerdem schalten wir für dich regelmäßig kostenlose Inhalte frei. Liebe Grüße senden dir die PSD-Gründer Stefan und Matthias Petri aus Waren an der Müritz. Hier erfährst du mehr über uns.

Stefan und Matthias Petri von PSD-Tutorials.de

Nächster neuer Gratisinhalt

03
Stunden
:
:
25
Minuten
:
:
19
Sekunden

Neueste Themen & Antworten

Flatrate für Tutorials, Assets, Vorlagen

Zurzeit aktive Besucher

Statistik des Forums

Themen
118.565
Beiträge
1.538.066
Mitglieder
67.488
Neuestes Mitglied
Andrew56524
Oben