![]() |
Anzeige:
|
|
|||||||
| Homepagegestaltung Fragen zur Gestaltung und Realisierung der eigenen Homepage |
|
![]() |
|
|
LinkBack | Themen-Optionen | Ansicht |
|
|
#1 (Direktlink) |
|
Ist öfter hier
![]() Registriert seit: 19.04.2004
Beiträge: 64
|
Hallo, zusammen,
ich habe jetzt endlich mal an einer Profilwebsite von mir rumgebastelt. Ich habe auf eine Vorlage zurückgegriffen, die ich vor geraumer Zeit mal angelegt habe. Hab auch nicht mehr so viel mit CSS gemacht. Aber immerhin ist das CSS laut W3C barrierefrei. Die HTML-Inhalte aber leider nicht ganz. es kommt öfter die Errormeldung zu einem angeblich nicht korrekt geschlossenen Link. Dieser Error betrifft immer einen Bildeinbau Kann mir jemand helfen? hier der CSS-Bereich wie Bilder integriert werden (das Bild wird klein angezeigt und wenn jemand mit der Maus auf das Bild klickt, dann öffnet es sich mit Hilfe der bekannten "Lightbox" on Originalgröße. /* BILDER */ dl { display: table; float: right; width: 200px; margin: 10px; background-color: #000; border:1px solid #fff; } dt img { width: 200px; height: 130px; display: block; } dd { padding: 4px; margin: 0px 0 0 0; font-size: 10px; background-color: #ccc; color: #333; } und hier ein Beispiel für einen Bildeinbau auf der Website: <dl> <dt><a href="http://www.paules-pc-forum.de/forum/images/postbox.jpg" rel="lightbox" title="Mein Briefkasten freut sich auf Nachschub"/a><img src="postbox.jpg" alt="Briefkasten" width="590" height="350" border="0" title="Mein Briefkasten freut sich auf Nachschub" /></a></a></dt> <dd>Mein (elektronischer) Briefkasten freut sich auf Nachschub</dd> </dl> und hier die Meckerei vom W3C-Validator: Line 93, Column 10: document type does not allow element "dl" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <dl> The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). ------------------------------------------------------------ Line 94, Column 297: end tag for element "a" which is not open …" title="Mein Briefkasten freut sich auf Nachschub" /></a></a></dt> 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. weiß jemand Rat? gruß desktopman |
|
|
|
|
|
|
#2 (Direktlink) |
|
Weiß worum´s geht
![]() Registriert seit: 27.07.2010
Ort: Kiel
Alter: 31
Beiträge: 190
|
Hi,
ich habe mal die Syntax korrigiert und in meinen Standard-Body gepackt. Da hat der W3C-Validator nicht gemeckert. HTML-Code:
<?xml version="1.0" encoding="iso-8859-1" ?> <!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" lang="de" xml:lang="de"> <head> <title> </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <body> <dl> <dt><a href="http://www.paules-pc-forum.de/forum/images/postbox.jpg" rel="lightbox" title="Mein Briefkasten freut sich auf Nachschub"></a><img src="postbox.jpg" alt="Briefkasten" width="590" height="350" border="0" title="Mein Briefkasten freut sich auf Nachschub" /></dt> <dd>Mein (elektronischer) Briefkasten freut sich auf Nachschub</dd> </dl> </body> </html> MfG |
|
|
|
|
|
#3 (Direktlink) |
|
Ist öfter hier
![]() Registriert seit: 19.04.2004
Beiträge: 64
|
Hallo, RApophis
Danke erst einmal. Einer der Errors ist jetzt verschwunden. ich hatte jetzt oben im header noch das charset=UTF-8 gegen charset=iso-8859-1 ausgetauscht und jetzt kam ne Errormeldung weniger. gruß desktopman |
|
|
|
![]() |
|
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| HTML Validator 0.8.6.1 | Paule | 5.) Firefox & Thunderbird PlugIns | 0 | 31.05.2010 16:20 |
| Total Validator Tool 6.3 Linux | Paule | 1.) Internet Tools | 0 | 20.05.2010 21:40 |
| Keiner meckert mehr........! | mausi | Windows Vista | 9 | 05.04.2008 16:52 |