Hi,
ihr kennt ja den Validator von W3C.
Nun habe ich meinen Code validieren lassen und bekomme 8 Fehler, von dennen ich nicht weiß, wo das Problem ist. Vllt. könnt ihr mir da ja weiter helfen.
Also erstmal den Doctype:
Code:
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
So nun die Fehler:
1.
<center
>
You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.
2.
<td width=
'100%' colspan='9' height='5' bgcolor='#FFFFFF'></td>
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.
3.
[img]gfx/3eckau1.gif[/img]
there is no attribute "border".
4.
<font color = 'blue'
>
element "font" undefined.
Die anderen sind so ähnlich.
Irgendwie vertragen sich die Elemente scheinbar mit dem Doctype nicht so ganz. Aber gibt es denn diese ganzen Dinge bei XHTML nicht mehr? Wenn ich den Doctype auf HTML stelle, dann zeigt er halt die Tags die mit "/>" enden als Fehler an.
Gruß