This page is designed to show some of the problems that can arise and the associated error messages that the validator throws up. Note that the page renders well in most browsers even though it is invalid in so many ways.
The error messages and their meaning will be listed below.
Can you see the three errors on the previous line?
1 <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3 <head>
4 <title>Student Name's Web Page
5 </head>
6 <body style="li {margin:5pt}">
7 <H1>Page with XML Errors in It</H1>
8 <p>This page is designed to show some of the problems that can arise and the associated error messages that
9 <a href="http://validator.w3.org/"> the validator</a> throws up. Note that the page renders well in most
10 browsers even though it is invalid in so many ways.
11 <p>The error messages and their meaning will be listed below.</p>
12 <img src = "w3c.png" height = 60>
13 <p>Can you see the three errors on the previous line?</p>
14 <hr>
15 </body>
16 </html>
You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").