- From: Walter Phipps <walter_enmontagnes@hotmail.fr>
- Date: Tue, 15 Jan 2013 16:18:47 +0100
- To: "www-validator@w3.org" <www-validator@w3.org>
- Message-ID: <DUB002-W12911DE12221A966B6B7C39912D0@phx.gbl>
Hi, While working out how to validate my website for XHTML, I pressed the "Validate the page" button for http://www.w3schools.com/html/demo_xhtml.asp and it came up with 5 errors, all with the same Error message. The identifying lines are : Line 9,Column 8: Below is the text that appears in "Source Originale" (French). I am not sure how it translates into English. <script> <!-- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' %3E%3C/script%3E")); //--> </script> I have not listed the other sets of <script>..........</script> Line 15, Col 8: Line 423, Col 8: Line 491, Col 8: Line 500, Col 99: The Error message is : required attribute "type" not specified <script> ✉ The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element. Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>. As a novice in XHTML can you let me know what should have been included. Thanks, Walter
Received on Tuesday, 15 January 2013 17:54:02 UTC