Why won’t this code validate with W3C html?
The javascript:
<script type="text/javascript
and this is what W3C say when i come to help validate this html:
Collection 37, Column 25:character “&” is a first character of an delimiter although occurred because data
in addition if(window.opera && windows.print) // opera
Collection 37, Column 5:character “&” is a first character of an delimiter although occurred because data
in addition if(window.opera && windows.print) // opera
Collection 37, Column 25:xmlParseEntityRef:absolutely no name
in addition if(window.opera && windows.print) // opera
Collection 37, Column 5:xmlParseEntityRef:absolutely no name
in addition if(window.opera && windows.print) // opera
In order to see by yourself site is usually http://wehavewinners.webuda.com.You will find there’s validate link on the webpage which allows these error messages.It validated right until I put in the guide mark all of us links!!!
Any assist in correcting that code significantly appreciated.
here you decide to go, this needs to be ok, POST added CDATA, everything in the CDATA sections is ignored because of the parser so that it is valid nevertheless ideally a person’s javascript and also css needs to be in distinct files to assist with page load.
/*<! CDATA*/
<! —
.style1 colour:#000000
.style2 font-size:11px
–>
/*>*/
/*<! CDATA*/
img.c20 boundary:0px solid; width:38px; height:19px;
img.c19 boundary:0px solid; width:120px; height:41px;
img.c18 boundary:0px solid; width:91px; height:44px;
img.c17 boundary:0px solid; width:98px; height:15px;
img.c16 boundary:0px solid; width:125px; height:16px;
img.c15 boundary:0px solid; width:85px; height:44px;
img.c14 boundary:0px solid; width:44px; height:44px;
img.c13 boundary:0px solid; width:144px; height:44px;
img.c12 size:40px; height:25px;
img.c11 boundary:0px solid; width:40px; height:25px;
img.c10 boundary:0px solid; width:115px; height:25px;
img.c9 boundary:0px solid; width:303px; height:59px;
div.c8 text-align:correct;
img.c7 boundary:medium it’s unlikely that any; width:468px; height:60px;
img.c6 size:48px; height:48px;
img.c5 size:130px; height:68px;
img.c4 size:208px; height:171px;
img.c3 size:640px; height:60px;
img.c2 boundary:0px solid; width:22px; height:22px;
img.c1 size:75px; height:1px;
/*>*/
You have got to take the actual JavaScript out.You won’t have the ability to validate that using in which program about it included.
(I’ve used the W3 Validator before).
Leave a Reply
You must be logged in to post a comment.