Following code gives me error when I try to validate it from validator.w3.org. I copied this code from book and image file is in the same folder as html file. Help me out.
Expand|Select|Wrap|Line Numbers
- <?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">
- <html xmlns = "http://www.w2.org/1999/xhtml">
- <head>
- <title>Images</title>
- </head>
- <body>
- <p>
- <img src = "Desert.jpg" width = "1024" height = "768"
- alt = "The Desert" />
- </p>
- </body>
- </html>
1. Error Line 17, Column 8: entity end not allowed in processing instruction
</html>
2. Error Line 17, Column 8: end of document in prolog
</html>
This error may appear when the validator receives an empty document. Please make sure that the document you are uploading is not empty, and report any discrepancy.