Ich wurde vom Professor gebeten, http://validator.w3.org/ diese Web site zu verwenden, um meine HTML-Akte zu validieren. Es gibt mir Fehler. Der erste Fehler ist:HTML Hausarbeit, die Validation nicht übergibt aber fein zeigt
Line 1, Column 1: no document type declaration; implying ""
Zweiter Fehler:
Line 11, Column 64: required attribute "ALT" not specified ✉ The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element. Typical values for type are type="text/css" for and type="text/javascript" for .
Kann jemand sagen, was falsch ist? Es zeigt gut in meinem Browser an Ich benutze IE 8. Aber der Professor sagt, wenn es in dieser Gültigkeitsprüfung scheitert, dann ist die Aufgabe unvollständig. Jede Hilfe wäre großartig.
<html>
<head>
<title>Randy's first html web page !</title>
</head>
<body bgcolor="#000066" text="#00ff44">
<h1 align="center"> Hello Professor</h1>
<h2 align="center"> By: Randy White</h2>
<p> I haven't done anything like this before.</p>
<p> Seems to be ok</p>
<p align="center"><img src="Koala.gif" width="100" height="100">
<table border="1">
<tr>
<th>Month</th>
<th>Day</th>
<th>Year</th>
</tr>
<tr>
<td>December</td>
<td>1</td>
<td>2010</td>
</tr>
</table>
</body>
</html>
Zeile 1, Spalte 1: Ende des Dokuments im Prolog ✉ Dieser Fehler kann auftreten, wenn der Prüfer ein leeres Dokument erhält. Stellen Sie sicher, dass das hochgeladene Dokument nicht leer ist, und melden Sie Diskrepanzen. – user770022