gelöschter Benutzer

Html Fehler wie bekomme ich die weg?

am 21.07.2012, 12:53 Uhr eröffnete folgenden Thread
Analyse-Ergebnisse    2050 mal gelesen    1 Antwort(en).

hallo kann mir jemand dabei helfen dieses hier zu korrigieren:

Validation Output: 2 Errors

Warning Line 187, Column 342: The border attribute is obsolete. Consider specifying img { border: 0; } in CSS instead.

…che.addthis.com/icons/v1/thumbs/facebook.gif" border="0" alt="Facebook" />

✉
Warning Line 188, Column 211: The border attribute is obsolete. Consider specifying img { border: 0; } in CSS instead.

…/cache.addthis.com/icons/v1/thumbs/twitter.gif" border="0" alt="Twitter" />

✉
Warning Line 189, Column 188: The border attribute is obsolete. Consider specifying img { border: 0; } in CSS instead.

…p://cache.addthis.com/icons/v1/thumbs/more.gif" border="0" alt="More..." />

✉
Error Line 190, Column 110: Bad value publisher for attribute rel on element a: Keyword publisher is not registered.

…blisher" style="text-decoration:none;"> <img src="https://ssl.gstatic.com/imag…

Syntax of link type valid for

and <area>:
A whitespace-separated list of link types listed as allowed on

and <area> in the HTML specification or listed as an allowed on

and <area> on the Microformats wiki without duplicate keywords in the list. You can register link types on the Microformats wiki yourself. <br />
Error Line 210, Column 104: Bad value generator for attribute rel on element a: Keyword generator is not registered.

…, Publishing Platform" rel="generator">Proudly powered by WordPress •…


Syntax of link type valid for

and <area>:
A whitespace-separated list of link types listed as allowed on

and <area> in the HTML specification or listed as an allowed on

and <area> on the Microformats wiki without duplicate keywords in the list. You can register link types on the Microformats wiki yourself.



gelöschter Benutzer
am 21.07.2012, 14:42 Uhr schrieb

Hallo

Die ersten drei Fehler beziehen sich darauf das aufgrund der Trennugn von Strukur und Design manche Attribute unter HTML5 nicht mehr erlaubt sind.

Das trifft auf [html]border="0"[/html] zu.

Alternative wird mit [css]img{border:0;}[/css] angegeben. Diese ist aber in diesem speziellen Fall zu allgemein.

Als Ersatz [html]style="border:0;"[/html] zu verwenden an der Stelle führt zu Spaghetti Kode.

Bessere Alternative wäre also die speziellen Bilder anzusprechen.

[css][src=\'http://cache.addthis.com/icons/v1/thumbs/facebook.gif\'],
[src=\'http://addthis.com/bookmark.php?s=twitter&source=tbxnj-1.0&pubid=ra-4f2460d14b6fab8d\'],
[src=\'http://www.addthis.com/bookmark.php?v=250&pubid=ra-4f2460d14b6fab8d\']{border:0;}[/css]

etwas allgemeiner aber dann nicht für ältere Browser geeignet wäre dann folgendes.

[css]
[src=\'http://www.addthis.com/\']{border:0;}[/css]

Die anderen zwei Fehler beziehen sich darauf das für das rel Attribut zwei Angaben nicht erlaubt sind.

[html] rel="publisher"[/html]
[html] rel="generator"[/html]

Lösung rauswerfen und falls doch für Funktionalität die Angaben benötigt werden den Fehler entweder ignorieren oder unter Umständen das Attribut mit Javascript setzen.

Gruß
Jörg


  • 1


« zurück zu: Analyse-Ergebnisse

Das Seitenreport Forum hat aktuell 5279 Themen und 36112 Beiträge.
Insgesamt sind 496 Mitglieder registriert.