Jump to content

a strange problem with validating


hno

Recommended Posts

 

 

HI

when I validate my web site it shows me 800 errors that I couldn't solve them .

 

this is the address of my validation .

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bazare-iran.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.654

 

it is not in english , I even use ure encode but it didn't solve  .

 

Can some body help me to solve this  problem ?

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/189544-a-strange-problem-with-validating/
Share on other sites

It is showing up in English to me.  I will repost the first one on the page and explain it, but going over 800 errors may require some kind of paid support if you can't get it down to a more manageable number.

 

Line 15, Column 9: 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>.

 

What this is talking about is not using <script> by itself anymore.  To be valid, it needs the type defined in the variable.  For instance, to define the script as a javascript:

 

<script type="text/javascript" src="script.js"> (contents of script) </script>

 

To define as a CSS file that is not on the page, you would use something like:

 

<link rel="stylesheet" href="style.css" type="text/css" />

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.