Forum Moderators: open

Message Too Old, No Replies

Im not getting this.

W3c Validator

         

tonynoriega

9:17 pm on Feb 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



my home page begings with:

<!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">

<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />


and has the following tag which does not validate with the W3C...and i cant figure out why:

<link REL="stylesheet" HREF="/css/home.css" type="text/css" />

im getting the following errors:


Line 18, Column 11: there is no attribute "REL".
<link REL="stylesheet" HREF="/css/home.css" type="text/css" />

i have been scouring the w3c and not find what i need to do...

swa66

9:28 pm on Feb 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



xhtml: Try lowercase.

tonynoriega

9:55 pm on Feb 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ahh... that was it.

believe it or not, i have taken my site from 170+ errors down to 80 in just a few minutes. validating with the W3C as you can imagine.

only remaining one that i have control over is this:
"document type does not allow element "link" here"

should i be using another tag instead of link?

i know of no other.

swa66

10:07 pm on Feb 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The <link ... /> should be inside the <head>.

only remaining one that i have control over is
Why would you not have control ?

Often just one error can trigger a whole lot down the line in a cascade, so fix the top ones first.

tonynoriega

10:32 pm on Feb 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



it is within the <head> </head> tag....

there are alot of errors i seem to not have control over..

i.e. we have a website search application that has a query in the function:

function RunSearch() {

window.location = "http://searcher.example.com:8765/query.html?ql=&col=web1&qt=" + document.getElementById("search").value;

and the errors im getting are from the query parameters in the URI:

general entity "qt" not defined and no default entity.
…aho.com:8765/query.html?ql=&col=web1&qt=" + document.getElementById("search")
}

cannot generate system identifier for generalentity "qt".
…aho.com:8765/query.html?ql=&col=web1&qt=" + document.getElementById("search")

phranque

1:42 am on Feb 18, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



what does the script tag look like?

tonynoriega

2:54 pm on Feb 18, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<script language="javascript" type="text/ecmascript">

function RunSearch() {

window.location = "http://searcher.example.com:8765/query.html?ql=&col=web1&qt=" + document.getElementById("search").value;

}

</script>

pageoneresults

3:10 pm on Feb 18, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



window.location = "http://searcher.example.com:8765/query.html?ql=&col=web1&qt=" + document.getElementById("search").value;

Escape the ampersands...

window.location = "http://searcher.example.com:8765/query.html?ql=&amp;col=web1&amp;qt=" + document.getElementById("search").value; 

Also, the language attribute on the script element has been deprecated. You can do this...

<script type="text/ecmascript">

P.S. We are now working through the cascade. Take the errors one at a time starting at the first one always. Correcting a top level error will usually correct quite a few more within the cascade. These particular errors that you are correcting now probably make up the bulk of what you have left, we'll see.