Seite 1 von 1

W3C Validierung, wie geht das?

Verfasst: 09.07.2011, 22:58
von Wire
Ich habe gerade festgestellt, dass meine Seite über 60 (CSS?) Fehler aufweist.

Als Beispiel:

Code: Alles auswählen

Error Line 6, Column 2112: The bgcolor attribute on the body element is obsolete. Use CSS instead.

…&#40;&#41;.src='/images/srpr/nav_logo73.png'" ><textarea id=csi style=display&#58;none></t…
In dem Fall ist das ">" in der letzen Zeile rot markiert.

heißt das, dass ich in der index.css oder styles.css einfach die rot markierten Zeichen oder Buchstaben einfügen muss?

Verfasst:
von

Verfasst: 10.07.2011, 00:17
von Hirnhamster
Da is nix rot..

Die einzig "richtige" Antwort auf deine Frage ist: Lern CSS oder hol dir jemanden der es kann. "Muss ich einfach mal eben..." kannst du bei sowas vergessen ;)

Verfasst: 10.07.2011, 14:12
von Wire
Wenn du zb. bei Google schaust, dann werden Zeichen rot angezeigt.

Wie nennt man solche Leute, die sich damit auskennen?

Verfasst:
von
Content Erstellung von ABAKUS Internet Marketing
Ihre Vorteile:
  • einzigartige Texte
  • suchmaschinenoptimierte Inhalte
  • eine sinnvolle Content-Strategie
  • Beratung und Umsetzung
Jetzt anfragen: 0511 / 300325-0

Verfasst: 10.07.2011, 14:42
von Synonym
Was willst Du nun denn eigentlich wissen?

Line 6 ist das hier alles

Code: Alles auswählen

window._gjp && _gjp&#40;&#41;</script><style id=gstyle>body&#123;margin&#58;0;overflow-y&#58;scroll&#125;#gog&#123;padding&#58;3px 8px 0&#125;td&#123;line-height&#58;.8em&#125;.gac_m td&#123;line-height&#58;17px&#125;form&#123;margin-bottom&#58;20px&#125;body,td,a,p,.h&#123;font-family&#58;arial,sans-serif&#125;.h&#123;color&#58;#36c;font-size&#58;20px&#125;.q&#123;color&#58;#00c&#125;.ts td&#123;padding&#58;0&#125;.ts&#123;border-collapse&#58;collapse&#125;em&#123;font-weight&#58;bold;font-style&#58;normal&#125;.lst&#123;height&#58;25px;width&#58;496px&#125;.ds&#123;border-bottom&#58;solid 1px #e7e7e7;border-right&#58;solid 1px #e7e7e7;display&#58;-moz-inline-box;display&#58;inline-block;margin&#58;3px 0 4px;margin-left&#58;4px&#125;input&#123;font-family&#58;inherit&#125;a.gb1,a.gb2,a.gb3,a.gb4&#123;color&#58;#11c !important&#125;#gbar,#guser&#123;font-size&#58;13px;padding-top&#58;1px !important&#125;#gbar&#123;height&#58;22px&#125;#guser&#123;padding-bottom&#58;7px !important;text-align&#58;right&#125;.gbh,.gbd&#123;border-top&#58;1px solid #c9d7f1;font-size&#58;1px&#125;.gbh&#123;height&#58;0;position&#58;absolute;top&#58;24px;width&#58;100%&#125;@media all&#123;.gb1&#123;height&#58;22px;margin-right&#58;.5em;vertical-align&#58;top&#125;#gbar&#123;float&#58;left&#125;&#125;a.gb1,a.gb4&#123;text-decoration&#58;underline !important&#125;a.gb1,a.gb4&#123;color&#58;#00c !important&#125;body&#123;background&#58;#fff;color&#58;black&#125;input&#123;-moz-box-sizing&#58;content-box&#125;a&#123;color&#58;#11c;text-decoration&#58;none&#125;a&#58;hover,a&#58;active&#123;text-decoration&#58;underline&#125;.fl a&#123;color&#58;#36c&#125;a&#58;visited&#123;color&#58;#551a8b&#125;a.gb1,a.gb4&#123;text-decoration&#58;underline&#125;a.gb3&#58;hover&#123;text-decoration&#58;none&#125;#ghead a.gb2&#58;hover&#123;color&#58;#fff!important&#125;.sblc&#123;padding-top&#58;5px&#125;.sblc a&#123;display&#58;block;margin&#58;2px 0;margin-left&#58;13px;font-size&#58;11px;&#125;.lsbb&#123;background&#58;#eee;border&#58;solid 1px;border-color&#58;#ccc #999 #999 #ccc;height&#58;30px;display&#58;block&#125;.ftl,#fll a&#123;display&#58;inline-block;margin&#58;0 12px&#125;.lsb&#123;background&#58;url&#40;/images/srpr/nav_logo73.png&#41; bottom;border&#58;none;color&#58;#000;cursor&#58;pointer;height&#58;30px;margin&#58;0;outline&#58;0;font&#58;15px arial,sans-serif;vertical-align&#58;top&#125;.lsb&#58;active&#123;background&#58;#ccc&#125;.lst&#58;focus&#123;outline&#58;none&#125;#addlang a&#123;padding&#58;0 3px&#125;.gac_v div&#123;display&#58;none&#125;.gac_v .gac_v2,.gac_bt&#123;display&#58;block!important&#125;</style><script>google.y=&#123;&#125;;google.x=function&#40;e,g&#41;&#123;google.y&#91;e.id&#93;=&#91;e,g&#93;;return false&#125;;</script></head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onload="document.f.q.focus&#40;&#41;;if&#40;document.images&#41;new Image&#40;&#41;.src='/images/srpr/nav_logo73.png'" ><textarea id=csi style=display&#58;none></textarea><div id=mngb><div id=gbar><nobr><b class=gb1>Web</b> <a onclick=gbar.qs&#40;this&#41; href="http&#58;//www.google.de/imghp?hl=de&tab=wi" class=gb1>Bilder</a> <a onclick=gbar.qs&#40;this&#41; href="http&#58;//video.google.de/?hl=de&tab=wv" class=gb1>Videos</a> <a onclick=gbar.qs&#40;this&#41; href="http&#58;//maps.google.de/maps?hl=de&tab=wl" class=gb1>Maps</a> <a onclick=gbar.qs&#40;this&#41; href="http&#58;//news.google.de/nwshp?hl=de&tab=wn" class=gb1>News</a> <a onclick=gbar.qs&#40;this&#41; href="http&#58;//www.google.de/prdhp?hl=de&tab=wf" class=gb1>Shopping</a> <a href="http&#58;//mail.google.com/mail/?hl=de&tab=wm" class=gb1>Google Mail</a> <a href="http&#58;//www.google.de/intl/de/options/" class=gb1 style="text-decoration&#58;none"><u>Mehr</u> &raquo;</a></nobr></div><div id=guser width=100%><nobr><span id=gbn class=gbi></span><span id=gbf class=gbf></span><span id=gbe><a href="/url?sa=p&pref=ig&pval=3&q=http&#58;//www.google.de/ig%3Fhl%3Dde%26source%3Diglk&usg=AFQjCNFjfPavRPBJrOKJS3MB2uzhpfN6zw" class=gb4>iGoogle</a> | </span><a href="/preferences?hl=de" class=gb4>Einstellungen</a> | <a href="https&#58;//www.google.com/accounts/ServiceLogin?hl=de&continue=http&#58;//www.google.de/" class=gb4>Anmelden</a></nobr></div><div class=gbh style=left&#58;0></div><div class=gbh style=right&#58;0></div></div><center><br clear=all id=lgpd><div id=lga><div style="padding&#58;28px 0 3px"><div align=left style="background&#58;url&#40;/intl/en_com/images/srpr/logo1w.png&#41; no-repeat;height&#58;110px;width&#58;276px" title="Google" id=hplogo onload="window.lol&&lol&#40;&#41;"><div nowrap style="color&#58;#777;font-size&#58;16px;font-weight&#58;bold;left&#58;214px;position&#58;relative;top&#58;70px">Deutschland</div></div></div><br></div><form action="/search" name=f><table cellpadding=0 cellspacing=0><tr valign=top><td width=25%>&nbsp;</td><td align=center nowrap><input name=hl type=hidden value=de><input name=source type=hidden value=hp><input type=hidden name=ie value="ISO-8859-1"><div class=ds style="height&#58;32px;margin&#58;4px 0"><input autocomplete=off maxlength=2048 name=q class="lst" title="Google-Suche" value="" size=57 style="background&#58;#fff;border&#58;1px solid #ccc;border-bottom-color&#58;#999;border-right-color&#58;#999;color&#58;#000;font&#58;18px arial,sans-serif bold;margin&#58;0;padding&#58;5px 8px 0 6px;vertical-align&#58;top"></div><br style="line-height&#58;0"><span class=ds ><span class=lsbb><input name=btnG type=submit value="Google-Suche" class=lsb></span></span><span class=ds><span class=lsbb><input name=btnI type=submit class=lsb value="Auf gut Glück!"></span></span></td><td nowrap width=25% align=left class="fl sblc"><a href="/advanced_search?hl=de">Erweiterte Suche</a><a href="/language_tools?hl=de">Sprachoptionen</a></td></tr></table></form><div style="font-size&#58;83%;min-height&#58;3.5em"><br></div><div id=res></div><span id=footer><center id=fctr><div style="font-size&#58;10pt"><div id=fll style="margin&#58;19px auto 19px auto;text-align&#58;center"><a href="/intl/de/ads/">Werben mit Google</a><a href="/services/">Unternehmensangebote</a><a href="/intl/de/about.html">Über Google</a><a href="http&#58;//www.google.com/ncr" class="gl nobr">Google.com in English</a></div></div><p style="color&#58;#767676;font-size&#58;8pt">&copy; 2011 - <a href="/intl/de/privacy.html">Datenschutz</a></p></center></span> <div id=xjsd></div><div id=xjsi><script>if&#40;google.y&#41;google.y.first=&#91;&#93;;google.dlj=function&#40;b&#41;&#123;window.setTimeout&#40;function&#40;&#41;&#123;var a=document.createElement&#40;"script"&#41;;a.src=b;document.getElementById&#40;"xjsd"&#41;.appendChild&#40;a&#41;&#125;,0&#41;&#125;;
und der Fehler ist das hier:
<body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onload="document.f.q.focus();if(document.images)new Image().src='/images/srpr/nav_logo73.png'" >
aber stand ja auch da...
Error Line 6, Column 2112: The bgcolor attribute on the body element is obsolete. Use CSS instead.

Verfasst: 10.07.2011, 15:37
von o2
Die Leute, die sich mit sowas auskennen und täglich damit konfrontiert sind, nennt man für gewöhnlich "Webdesigner" oder - etwas umfassender - "Webentwickler". Jede gut aufgestellte Webagentur sollte daher diese Art von Anpassungen durchführen können. Nach dem oben zitierten Codeschnipsel zu urteilen, dürfte das allerdings eine umfangreichere Aufgabe werden.