HTML Homework that doesnt pass validation but displays fine -
i asked professor use http://validator.w3.org/ web site validate html file. gives me errors. first error is:
line 1, column 1: no document type declaration; implying ""
second error is:
line 11, column 64: required attribute "alt" not specified ✉ attribute given above required element you've used, have omitted it. instance, in html , xhtml document types "type" attribute required on "script" element , "alt" attribute required "img" element. typical values type type="text/css" , type="text/javascript" .
can tell wrong? displays fine in browser using ie 8. professor says if fails in validation check assignment incomplete. great.
<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> haven't done before.</p> <p> seems 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>
<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> <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> haven't done before.</p> <p> seems ok</p> <p align="center"><img src="koala.gif" width="100" height="100" alt="koala image"> <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>
i won't answer questions assuming have provide tomorrow here go.
Comments
Post a Comment