ungültiges html?
lzoril
- html
0 Markus Pitha0 Zeromancer0 Elya
Bei der verlinkten seite weiß ich nicht wie ich sie "gradebiege", wenn ichs richtig verstanden habe wurde die wohl mit word oder so erstellt und läuft im IE nicht sauber (Schriftfarbe und Größe fehlerhaft), kann mir wer helfen? der W3C Validator sagt das "xmlns" nicht ok ist aber wie ich das ändern muss weiß ich nicht.
hier der code:
<!--
-->
<!DOCTYPE html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="form-Dateien/filelist.xml">
<link rel=Edit-Time-Data href="form-Dateien/editdata.mso">
<!--[if !mso]>
<style>
v:* {behavior:url(#default#VML);}
o:* {behavior:url(#default#VML);}
w:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>eMail senden</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>ich</o:Author>
<o:Template>Normal</o:Template>
<o:LastAuthor>ich</o:LastAuthor>
<o:Revision>3</o:Revision>
<o:Created>2004-10-06T21:00:00Z</o:Created>
<o:LastSaved>2004-10-06T21:01:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>63</o:Words>
<o:Characters>398</o:Characters>
<o:Company>mein</o:Company>
<o:Lines>3</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>460</o:CharactersWithSpaces>
<o:Version>10.2625</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:HyphenationZone>21</w:HyphenationZone>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:536871559 0 0 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001px;
mso-pagination:widow-orphan;
font-size:12.0px;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
mso-pagination:widow-orphan;
font-size:12.0px;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:595.3px 841.9px;
margin:70.85px 70.85px 2.0cm 70.85px;
mso-header-margin:35.4px;
mso-footer-margin:35.4px;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Normale Tabelle";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4px 0cm 5.4px;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001px;
mso-pagination:widow-orphan;
font-size:10.0px;
font-family:"Times New Roman";}
</style>
<![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=black lang=DE style='tab-interval:35.4px'>
<div class=Section1>
<h2><u><span style='font-family:Verdana'><font size="2" color="#C0C0C0">eMail senden</span></u><span
style='font-family:Verdana'><o:p></o:p></span></h2>
<p class=MsoNormal><span style='font-family:Verdana'><font color="#C0C0C0">Alle Felder müssen ausgefüllt
sein. Bei nichtzutreffenden<br>
Felder gebt einfach etwas entsprechendes ein!<br>
(z. B. "keine" oder "nichts")<o:p></o:p></span></p>
<form action=send.php method=post enctype="application/x-www-form-urlencoded">
<p class=MsoNormal><span style='font-family:Verdana'><INPUT TYPE="text" NAME="Vorname">Vorname<br>
<INPUT TYPE="text" NAME="Nachname"><font color="#C0C0C0">Nachname<br>
<INPUT TYPE="text" NAME="eMail"><font color="#C0C0C0">eMail-Adresse<br>
<INPUT TYPE="text" NAME="Homepage"><font color="#C0C0C0">Homepage<o:p></o:p></span></p>
<p><span style='font-family:Verdana'><font color="#C0C0C0">Deine Nachricht:<br>
<TEXTAREA ROWS="7" COLS="20" NAME="Nachricht"></TEXTAREA><o:p></o:p></span></p>
<p><span style='font-family:Verdana'><INPUT TYPE="submit" ACTION="send.php" VALUE="Abschicken" METHOD="post"
ACTION=send.php METHOD=post><o:p></o:p></span></p>
</form>
</div>
</body>
</html>
Am besten in die Tonne treten.
Ich habe selten Code gesehen, der so dermaßen jenseits von Gut und Böse ist.
Markus.
Hallo,
das einfachste wird sein den Inhalt zu nehmen und html aussen rum zu stricken...
Mit freundlichen Grüßen
André
Hallo lzoril,
Bei der verlinkten seite weiß ich nicht wie ich sie "gradebiege",
falls Du Dreamweaver zur Hand hast: dort gibt es, wenn ich mich recht entsinne, eine Funktion "Word-Code bereinigen" oder so ähnlich. Damit könntest Du das gröbste rauskriegen.
Ah, ich hab gerade mal die Tidy-Funktion meines SK-Edit ausprobiert, da gibt's auch sowas: "Microsoft-spezifisches HTML entfernen". Wenn ich Deinen Code da durchlaufen lasse, bleibt das hier:
<!DOCTYPE html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<html>
<head>
<link rel="Edit-Time-Data" href="form-Dateien/editdata.mso">
<title>eMail senden</title>
</head>
<body bgcolor="black">
<div class="Section1">
<h2><u>eMail senden</u></h2>
<p>Alle Felder müssen ausgefüllt sein. Bei nichtzutreffenden<br>
Felder gebt einfach etwas entsprechendes ein!<br>
(z. B. "keine" oder "nichts")</p>
<form action="send.php" method="post" enctype="application/x-www-form-urlencoded">
<p><input type="text" name="Vorname">Vorname<br>
<input type="text" name="Nachname">Nachname<br>
<input type="text" name="eMail">eMail-Adresse<br>
<input type="text" name="Homepage">Homepage</p>
<p>Deine Nachricht:<br>
<textarea rows="7" cols="20" name="Nachricht"></textarea></p>
<p><input type="submit" value="Abschicken" action="send.php" method="post"></p>
</form>
</div>
</body>
</html>
Ich habe es weder gecheckt noch angesehen, aber vielleicht erspart es Dir ja Zeit, die Du für eine ordentliche CSS-Formatierung verwenden kannst ;-)
Gruß aus Köln-Ehrenfeld,
Elya
<!DOCTYPE html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
Ergänzung: Da können noch die Microsoft-Namensräume raus.
Gunnar