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.
…().src='/images/srpr/nav_logo73.png'" ><textarea id=csi style=display: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: 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: 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()</script><style id=gstyle>body{margin:0;overflow-y:scroll}#gog{padding:3px 8px 0}td{line-height:.8em}.gac_m td{line-height:17px}form{margin-bottom:20px}body,td,a,p,.h{font-family:arial,sans-serif}.h{color:#36c;font-size:20px}.q{color:#00c}.ts td{padding:0}.ts{border-collapse:collapse}em{font-weight:bold;font-style:normal}.lst{height:25px;width:496px}.ds{border-bottom:solid 1px #e7e7e7;border-right:solid 1px #e7e7e7;display:-moz-inline-box;display:inline-block;margin:3px 0 4px;margin-left:4px}input{font-family:inherit}a.gb1,a.gb2,a.gb3,a.gb4{color:#11c !important}#gbar,#guser{font-size:13px;padding-top:1px !important}#gbar{height:22px}#guser{padding-bottom:7px !important;text-align:right}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}@media all{.gb1{height:22px;margin-right:.5em;vertical-align:top}#gbar{float:left}}a.gb1,a.gb4{text-decoration:underline !important}a.gb1,a.gb4{color:#00c !important}body{background:#fff;color:black}input{-moz-box-sizing:content-box}a{color:#11c;text-decoration:none}a:hover,a:active{text-decoration:underline}.fl a{color:#36c}a:visited{color:#551a8b}a.gb1,a.gb4{text-decoration:underline}a.gb3:hover{text-decoration:none}#ghead a.gb2:hover{color:#fff!important}.sblc{padding-top:5px}.sblc a{display:block;margin:2px 0;margin-left:13px;font-size:11px;}.lsbb{background:#eee;border:solid 1px;border-color:#ccc #999 #999 #ccc;height:30px;display:block}.ftl,#fll a{display:inline-block;margin:0 12px}.lsb{background:url(/images/srpr/nav_logo73.png) bottom;border:none;color:#000;cursor:pointer;height:30px;margin:0;outline:0;font:15px arial,sans-serif;vertical-align:top}.lsb:active{background:#ccc}.lst:focus{outline:none}#addlang a{padding:0 3px}.gac_v div{display:none}.gac_v .gac_v2,.gac_bt{display:block!important}</style><script>google.y={};google.x=function(e,g){google.y[e.id]=[e,g];return false};</script></head><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'" ><textarea id=csi style=display:none></textarea><div id=mngb><div id=gbar><nobr><b class=gb1>Web</b> <a onclick=gbar.qs(this) href="http://www.google.de/imghp?hl=de&tab=wi" class=gb1>Bilder</a> <a onclick=gbar.qs(this) href="http://video.google.de/?hl=de&tab=wv" class=gb1>Videos</a> <a onclick=gbar.qs(this) href="http://maps.google.de/maps?hl=de&tab=wl" class=gb1>Maps</a> <a onclick=gbar.qs(this) href="http://news.google.de/nwshp?hl=de&tab=wn" class=gb1>News</a> <a onclick=gbar.qs(this) href="http://www.google.de/prdhp?hl=de&tab=wf" class=gb1>Shopping</a> <a href="http://mail.google.com/mail/?hl=de&tab=wm" class=gb1>Google Mail</a> <a href="http://www.google.de/intl/de/options/" class=gb1 style="text-decoration:none"><u>Mehr</u> »</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://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://www.google.com/accounts/ServiceLogin?hl=de&continue=http://www.google.de/" class=gb4>Anmelden</a></nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div></div><center><br clear=all id=lgpd><div id=lga><div style="padding:28px 0 3px"><div align=left style="background:url(/intl/en_com/images/srpr/logo1w.png) no-repeat;height:110px;width:276px" title="Google" id=hplogo onload="window.lol&&lol()"><div nowrap style="color:#777;font-size:16px;font-weight:bold;left:214px;position:relative;top:70px">Deutschland</div></div></div><br></div><form action="/search" name=f><table cellpadding=0 cellspacing=0><tr valign=top><td width=25%> </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:32px;margin:4px 0"><input autocomplete=off maxlength=2048 name=q class="lst" title="Google-Suche" value="" size=57 style="background:#fff;border:1px solid #ccc;border-bottom-color:#999;border-right-color:#999;color:#000;font:18px arial,sans-serif bold;margin:0;padding:5px 8px 0 6px;vertical-align:top"></div><br style="line-height: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:83%;min-height:3.5em"><br></div><div id=res></div><span id=footer><center id=fctr><div style="font-size:10pt"><div id=fll style="margin:19px auto 19px auto;text-align: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://www.google.com/ncr" class="gl nobr">Google.com in English</a></div></div><p style="color:#767676;font-size:8pt">© 2011 - <a href="/intl/de/privacy.html">Datenschutz</a></p></center></span> <div id=xjsd></div><div id=xjsi><script>if(google.y)google.y.first=[];google.dlj=function(b){window.setTimeout(function(){var a=document.createElement("script");a.src=b;document.getElementById("xjsd").appendChild(a)},0)};
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.