pls use the validator w3org to check all the errors on this

pls use the validator w3.org to check all the errors on this codes below and past the correct one so i can compare the 2 to see my mistakes

<!DOCTYPE html PUBLIC \"-//W3C//HTML 4.01 Transitional//EN\" \"http://www.w3.org/html4/loose.dtd\">
<html>
<head>
<title>Firefly</title>
</head>

<head>
<h1>Firefly</h1>

<p>
<img src=\"Thumbs/Firefly.jpg\" width=\"750\" height=\"400\">
</p>

<ul>
<li>Duration 130 Mins</li>
<li>Action</li>
<li>Date Released 2012</li>
<li>Box Office $15 Million</li>
<li>Director Kevin Durant</li>
</ul>

<center><a href=\"MainViewScreen.html\">Back to Main View Screen</a></center>

</body>
</html>

Solution

As per your request I have validated your code using validator w3.org and corrected all the errrors which were made.Initially there were 22 errors.Corrected all of them.Below I posted the correct piece of the code

some major errors made

1)specified head tag twice instead of body

2)html opening tag was usd twice

3)did not use alt attribute for image

4)opening tag was incorrect because of which every other tag was unable to reference libraries and hence resulted in errors

corrected code:

<!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\">

<head>
<title>Firefly</title>
</head>
<body>
<h1>Firefly</h1>
<p>
<img src=\"Thumbs/Firefly.jpg\" alt=\"HTML5 Icon\" width=\"750\" height=\"400\"/>
</p>
<ul>
<li>Duration 130 Mins</li>
<li>Action</li>
<li>Date Released 2012</li>
<li>Box Office $15 Million</li>
<li>Director Kevin Durant</li>
</ul>
<center><a href=\"MainViewScreen.html\">Back to Main View Screen</a></center>
</body>
</html>

pls use the validator w3.org to check all the errors on this codes below and past the correct one so i can compare the 2 to see my mistakes <!DOCTYPE html PU

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site