pls use the validator.w3.org to check for errors on this code <!DOCTYPE html PUB
ID: 3794611 • Letter: P
Question
pls use the validator.w3.org to check for errors on this code
<!DOCTYPE html PUBLIC "-//W3C//HTML 4.01 Transitional//EN" "http://www.w3.org/html4/loose.dtd">
<body>
<html>
<head>
<title>Main View Screen</title>
</head>
<h1 align="center">"Choose your show"</h1>
<h2>unordered list</h2>
<p>
<a href="Star Trek.html">
<img src="Thumbs/Startrek.jpg" alt="Star Trek">
</a>
<a href="Babylon 5.html">
<img src="Thumbs/Babylon 5.jpg" alt="Babylon 5">
</a>
<a href="Firefly.html">
<img src="Thumbs/Firefly.jpg" alt="Firefly">
</a>
</p>
<ul>
<li>Stargate</li>
<li>Farscape</li>
<li>Battlestar Galactica</li>
<li>Doctor Who</li>
</ul>
</body>
</html>
Explanation / Answer
Line 1, Column 95: DTD did not contain element declaration for document type name
Line 2, Column 13: there is no attribute "STYLE"
Line 2, Column 43: element "BODY" undefined
Line 2, Column 43: element "HTML" undefined
Line 5, Column 6: element "HEAD" undefined
Line 6, Column 7: element "TITLE" undefined
Line 9, Column 11: there is no attribute "ALIGN"
Line 9, Column 19: element "H1" undefined
Line 11, Column 4: element "H2" undefined
Line 13, Column 3: element "P" undefined
Line 14, Column 9: there is no attribute "HREF"
Line 15, Column 12: there is no attribute "SRC"
Line 15, Column 38: there is no attribute "ALT"
Line 21, Column 46: element "IMG" undefined
Line 26, Column 6: element "LI" undefined
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.