- From: O'Guin, Jules D. <jdo09280@ccv.vsc.edu>
- Date: Fri, 18 Oct 2019 19:27:55 +0000
- To: Mary Newton <mlnewton@bardstowncable.net>, "www-validator@w3.org" <www-validator@w3.org>
- Message-ID: <MN2PR01MB5997574FBA43602A8EBC18A7CC6C0@MN2PR01MB5997.prod.exchangelabs.com>
Simple fix. Simply remove all of this mess from the top of your 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" xml:lang="en" lang="en"> And replace it with this: <!DOCTYPE html> <html> Then, in your head, remove this: <meta http-equiv="Content-Type" content="text/html; charset="utf-8"/> And replace it with this: <meta charset="UTF-8"> You should also remove the HTML comment containers from your style block (the opening and trailing <!-- and -->). If your intent is to comment out your style (rendering it ineffective), CSS comments are put between /* and */. You also can change your <style type="text/css"> to a simple <style> tag. There is no reason for you to be trying to build this page in xhtml that I can see. HTML5 will be much easier for you. A good beginner book to help you would be HTML and CSS: Visual QuickStart Guide by Elizabeth Castro & Bruce Hyslop. Regards, Jules D. O’Guin -----Original Message----- From: Mary Newton <mlnewton@bardstowncable.net> Sent: Wednesday, October 16, 2019 10:56 AM - 10:56 AM To: www-validator@w3.org Subject: page validation problem This message is from an external sender. Please be careful when clicking on links and attachments. I'm puzzled over a code validation issue I'm having right now. Hoping you can check my code and advise how I can fix the issue. The following page can't be validated through W3C: http://bookshelf.vamato.net/anotherworld.htm Here is the message from the validator: Sorry, I am unable to validate this document because on line 1 it contained one or more bytes that I cannot interpret as windows-1252 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication. The error was: Modification of a read-only value attempted I've gone over and over it, and copied and pasted the code (which appears identical to me) from other pages at my site that are validated, but I still keep getting the same message. Something (?Windows update?) changed recently where I have to code in my smart quotes (instead of them just displaying as smart quotes if the original font had curly quotes). But the location (Line 1) where the error apparently appears doesn't use any smart quotes in the code. Especially since the error seems to be something in the very first line, it's frustrating and this is a recent change (yesterday) since I just uploaded a page 5 days ago that used the same code in the first line, and it validated. I am using Windows 10 and the latest version of the Chrome browser (as far as I know). I'm not a skilled coder, so simple explanations are greatly appreciated. A friend set up my website originally, but I've been taking care of it and making my own pages for the past 12 years. My friend can often spot thinks I did wrong if I can't see the mistakes myself, but she is out of the country right now. Thank you for any help you can offer, Mary Newton
Received on Friday, 18 October 2019 19:28:00 UTC